forked from Mirrorlandia_minetest/minetest
Memleak fix: LocalPlayer object was not deleted
Delete LocalPlayer when ClientEnvironment (object owner) is destroyed
This commit is contained in:
parent
460e094a9f
commit
54ffc4e915
@ -66,6 +66,8 @@ ClientEnvironment::~ClientEnvironment()
|
||||
|
||||
// Drop/delete map
|
||||
m_map->drop();
|
||||
|
||||
delete m_local_player;
|
||||
}
|
||||
|
||||
Map & ClientEnvironment::getMap()
|
||||
|
Loading…
Reference in New Issue
Block a user