From fade3fb6b5db29f714141f10d43a4c2f0f1417a0 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 2 Nov 2015 12:10:00 +0000 Subject: Tox: forgot to free memory git-svn-id: http://svn.miranda-ng.org/main/trunk@15669 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_messages.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index 5b2867cbe6..f6a1dd8102 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -67,6 +67,9 @@ void CToxProto::SendMessageAsync(void *arg) uint64_t messageId = (((int64_t)friendNumber) << 32) | ((int64_t)messageNumber); messages[messageId] = param->hMessage; + + mir_free(param->message); + mir_free(param); } int CToxProto::OnSendMessage(MCONTACT hContact, const char *szMessage) -- cgit v1.2.3