From: red-001 Date: Wed, 27 Jun 2018 15:06:37 +0000 (+0100) Subject: Fix small memory leaks in client. (#7492) X-Git-Tag: 5.0.0~331 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a43a4e2d97d52f0e5e6e62e472a577e434d892eb;p=oweals%2Fminetest.git Fix small memory leaks in client. (#7492) --- diff --git a/src/client.cpp b/src/client.cpp index 049d35379..378efd5fe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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)