Permalink
Browse files

Fix small memory leaks in client. (#7492)

  • Loading branch information...
red-001 authored and nerzhul committed Jun 27, 2018
1 parent 93661ca commit a43a4e2d97d52f0e5e6e62e472a577e434d892eb
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/client.cpp
@@ -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()) {
@@ -274,6 +276,7 @@ Client::~Client()
}

delete m_minimap;
delete m_media_downloader;
}

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

0 comments on commit a43a4e2

Please sign in to comment.