Skip to content

Commit a43a4e2

Browse files
red-001nerzhul
authored andcommittedJun 27, 2018
Fix small memory leaks in client. (#7492)
1 parent 93661ca commit a43a4e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎src/client.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ Client::~Client()
250250
m_shutdown = true;
251251
m_con->Disconnect();
252252

253+
deleteAuthData();
254+
253255
m_mesh_update_thread.stop();
254256
m_mesh_update_thread.wait();
255257
while (!m_mesh_update_thread.m_queue_out.empty()) {
@@ -274,6 +276,7 @@ Client::~Client()
274276
}
275277

276278
delete m_minimap;
279+
delete m_media_downloader;
277280
}
278281

279282
void Client::connect(Address address, bool is_local_server)

0 commit comments

Comments
 (0)
Please sign in to comment.