mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ ClientEnvironment::~ClientEnvironment()
|
|||
|
||||
// Drop/delete map
|
||||
m_map->drop();
|
||||
|
||||
delete m_local_player;
|
||||
}
|
||||
|
||||
Map & ClientEnvironment::getMap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue