From: red-001 Date: Wed, 27 Jun 2018 15:06:37 +0000 (+0100) Subject: Fix small memory leaks in client. (#7492) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e66d5e500c187eaf06297348c498f3ba8d7ef738;p=oweals%2Fminetest.git Fix small memory leaks in client. (#7492) --- 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)