summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-11-02 12:10:00 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-11-02 12:10:00 +0000
commitfade3fb6b5db29f714141f10d43a4c2f0f1417a0 (patch)
tree5b8c52eb2865624529b24cab75992fa4dd187451 /protocols/Tox
parent036a125b6b499f87072b32310ac5acfab697be84 (diff)
Tox: forgot to free memory
git-svn-id: http://svn.miranda-ng.org/main/trunk@15669 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_messages.cpp3
1 files changed, 3 insertions, 0 deletions
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)