diff --git a/coreapi/chat.c b/coreapi/chat.c index 5a471adb7..bf921ecb3 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -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; }