mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
ConsoleCommandSender: ensure that PermissibleBase doesn't leak
if recalculatePermissions() was called, the PermissionManager will reference it, preventing it from being GC'd.
This commit is contained in:
parent
66622defae
commit
e720c001a9
@ -87,4 +87,9 @@ class ConsoleCommandSender implements CommandSender{
|
||||
}
|
||||
$this->lineHeight = $height;
|
||||
}
|
||||
|
||||
public function __destruct(){
|
||||
//permission subscriptions need to be cleaned up explicitly
|
||||
$this->perm->destroyCycles();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user