mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fixed entities memory leak
This commit is contained in:
parent
c77a3c2f87
commit
1f8939da6e
@ -224,6 +224,8 @@ class PlayerAPI{
|
||||
$player->close();
|
||||
$this->saveOffline($player->username, $player->data);
|
||||
$this->server->query("DELETE FROM players WHERE name = '".$player->username."';");
|
||||
unset($player->entity->player);
|
||||
unset($player->entity);
|
||||
$this->server->api->entity->remove($player->eid);
|
||||
unset($player);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user