From e66d5e500c187eaf06297348c498f3ba8d7ef738 Mon Sep 17 00:00:00 2001 From: red-001 Date: Wed, 27 Jun 2018 16:06:37 +0100 Subject: [PATCH] Fix small memory leaks in client. (#7492) --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index abc84b7cf..1cbb6953d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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)