Free id for OTR messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user