Free id for OTR messages

This commit is contained in:
James Booth
2015-08-20 22:02:58 +01:00
parent 3000916ad9
commit c18b7f4d67
2 changed files with 10 additions and 5 deletions

View File

@@ -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;
}