From 654990ac5c221f87b1ea97e8bf2f3c7639d6d96b Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 14 Sep 2015 17:26:01 +0200 Subject: [PATCH] chat.c: fix invalid logging each time a chat room is destroyed --- coreapi/chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index 990f06998..767433e4a 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -495,8 +495,8 @@ static void _linphone_chat_room_destroy(LinphoneChatRoom *cr){ " linphone_core_get_chat_room() doesn't give a reference, there is no need to call linphone_chat_room_unref(). " "In order to remove a chat room from the core, use linphone_core_delete_chat_room().", cr); + cr->lc->chatrooms=ms_list_remove(cr->lc->chatrooms, cr); } - cr->lc->chatrooms=ms_list_remove(cr->lc->chatrooms, cr); } linphone_address_destroy(cr->peer_url); ms_free(cr->peer);