Fix double free of a chat message

This commit is contained in:
Benjamin Reis 2017-07-07 15:01:26 +02:00
parent 17e4a1ff6c
commit a8088c83db

View file

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