Skip to content

Commit

Permalink
Fix small memory leaks in client. (#7492)
Browse files Browse the repository at this point in the history
  • Loading branch information
red-001 authored and nerzhul committed Jun 27, 2018
1 parent 93661ca commit a43a4e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.cpp
Expand Up @@ -250,6 +250,8 @@ Client::~Client()
m_shutdown = true;
m_con->Disconnect();

deleteAuthData();

m_mesh_update_thread.stop();
m_mesh_update_thread.wait();
while (!m_mesh_update_thread.m_queue_out.empty()) {
Expand All @@ -274,6 +276,7 @@ Client::~Client()
}

delete m_minimap;
delete m_media_downloader;
}

void Client::connect(Address address, bool is_local_server)
Expand Down

0 comments on commit a43a4e2

Please sign in to comment.