Commit a8088c83 authored by Benjamin REIS's avatar Benjamin REIS
Browse files

Fix double free of a chat message

parent 17e4a1ff
......@@ -670,7 +670,6 @@ LinphoneReason linphone_core_message_received(LinphoneCore *lc, SalOp *op, const
/* Check if this is a duplicate message */
if ((msg = linphone_chat_room_find_message_with_dir(cr, sal_op_get_call_id(op), LinphoneChatMessageIncoming))) {
reason = lc->chat_deny_code;
linphone_chat_message_unref(msg);
goto end;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment