From f3995f7cb071248baf79358bb308b19e35a0b25e Mon Sep 17 00:00:00 2001 From: Frago9876543210 Date: Sat, 6 Jul 2019 17:18:09 +0300 Subject: [PATCH] Destroy EffectManager <-> Living cyclic reference on close (#2993) --- src/pocketmine/entity/Living.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index ffaf7db2f..36ea6207d 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -758,6 +758,7 @@ abstract class Living extends Entity{ protected function destroyCycles() : void{ $this->armorInventory = null; + $this->effectManager = null; parent::destroyCycles(); } }