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>
Thu, 28 Jun 2018 17:11:01 +0000 (19:11 +0200)
src/client.cpp

index abc84b7cf8a0d66c35465ed4f6a0697a62fe3cf9..1cbb6953defbbc76a0ed249fc05b45eefe2d3fb6 100644 (file)
@@ -230,6 +230,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()) {
@@ -257,6 +259,7 @@ Client::~Client()
        }
 
        delete m_minimap;
+       delete m_media_downloader;
 }
 
 void Client::connect(Address address, bool is_local_server)