mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 23:22:24 +01:00
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
|
// Drop/delete map
|
||||||
m_map->drop();
|
m_map->drop();
|
||||||
|
|
||||||
|
delete m_local_player;
|
||||||
}
|
}
|
||||||
|
|
||||||
Map & ClientEnvironment::getMap()
|
Map & ClientEnvironment::getMap()
|
||||||
|
Loading…
Reference in New Issue
Block a user