Fix small memory leaks in client. (#7492)

This commit is contained in:
red-001 2018-06-27 16:06:37 +01:00 committed by Loïc Blot
parent 93661ca212
commit a43a4e2d97

@ -250,6 +250,8 @@ Client::~Client()
m_shutdown = true; m_shutdown = true;
m_con->Disconnect(); m_con->Disconnect();
deleteAuthData();
m_mesh_update_thread.stop(); m_mesh_update_thread.stop();
m_mesh_update_thread.wait(); m_mesh_update_thread.wait();
while (!m_mesh_update_thread.m_queue_out.empty()) { while (!m_mesh_update_thread.m_queue_out.empty()) {
@ -274,6 +276,7 @@ Client::~Client()
} }
delete m_minimap; delete m_minimap;
delete m_media_downloader;
} }
void Client::connect(Address address, bool is_local_server) void Client::connect(Address address, bool is_local_server)