Fix small memory leaks in client. (#7492)
authorred-001 <red-001@outlook.ie>
Wed, 27 Jun 2018 15:06:37 +0000 (16:06 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Wed, 27 Jun 2018 15:06:37 +0000 (17:06 +0200)
src/client.cpp

index 049d35379aaeb6fd239de184418fdd846db8b7a6..378efd5fea0c4052a8976311022588b56c0d0c50 100644 (file)
@@ -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)