Skip to content

Commit

Permalink
Memleak fix: LocalPlayer object was not deleted
Browse files Browse the repository at this point in the history
Delete LocalPlayer when ClientEnvironment (object owner) is destroyed
  • Loading branch information
nerzhul committed Apr 5, 2017
1 parent 460e094 commit 54ffc4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clientenvironment.cpp
Expand Up @@ -66,6 +66,8 @@ ClientEnvironment::~ClientEnvironment()

// Drop/delete map
m_map->drop();

delete m_local_player;
}

Map & ClientEnvironment::getMap()
Expand Down

0 comments on commit 54ffc4e

Please sign in to comment.