diff options
author | James Booth <boothj5@gmail.com> | 2015-08-20 22:02:58 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-08-20 22:02:58 +0100 |
commit | c18b7f4d67a4b5e2cd026b47f9d51dae74427c1d (patch) | |
tree | 13f02a03c10d69f2eb65aee6e921c60f6c7d43fe /src/command | |
parent | 3000916ad9aed6b22025de17d5377695280dc8dd (diff) | |
download | profani-tty-c18b7f4d67a4b5e2cd026b47f9d51dae74427c1d.tar.gz |
Free id for OTR messages
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 5e7146fc..7167e26d 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -4530,7 +4530,8 @@ cmd_otr(ProfWin *window, const char * const command, gchar **args) if (!otr_is_secure(barejid)) { char *otr_query_message = otr_start_query(); - message_send_chat_otr(barejid, otr_query_message); + char *id = message_send_chat_otr(barejid, otr_query_message); + free(id); return TRUE; } @@ -4562,7 +4563,8 @@ cmd_otr(ProfWin *window, const char * const command, gchar **args) } char *otr_query_message = otr_start_query(); - message_send_chat_otr(chatwin->barejid, otr_query_message); + char *id = message_send_chat_otr(chatwin->barejid, otr_query_message); + free(id); return TRUE; } |