Skip to content
Permalink
Browse files
Memleak fix: LocalPlayer object was not deleted
Delete LocalPlayer when ClientEnvironment (object owner) is destroyed
  • Loading branch information
nerzhul committed Apr 5, 2017
1 parent 460e094 commit 54ffc4e915fcdb6f6e7556bc2d1f8b27fd567d9f
Showing 1 changed file 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()

0 comments on commit 54ffc4e

Please sign in to comment.