Memleak fix: LocalPlayer object was not deleted

Delete LocalPlayer when ClientEnvironment (object owner) is destroyed
This commit is contained in:
Loïc Blot 2017-04-05 12:30:52 +02:00
parent 460e094a9f
commit 54ffc4e915

@ -66,6 +66,8 @@ ClientEnvironment::~ClientEnvironment()
// Drop/delete map
m_map->drop();
delete m_local_player;
}
Map & ClientEnvironment::getMap()