mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user