summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)