From 87c75b2e1ec02c75b2bc2bb223a11990885f8744 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Tue, 2 Jun 2015 09:59:26 +0200 Subject: [PATCH] Don't retain the chatroom, we don't need to --- Classes/ChatTableViewController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/ChatTableViewController.m b/Classes/ChatTableViewController.m index 429209d86..1ead38eb0 100644 --- a/Classes/ChatTableViewController.m +++ b/Classes/ChatTableViewController.m @@ -77,7 +77,7 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo ms_list_free_with_data(history, (void (*)(void *))linphone_chat_message_unref); sorted = ms_list_insert_sorted(sorted, - linphone_chat_room_ref(iter->data), + iter->data, (MSCompareFunc)sorted_history_comparison); iter = iter->next; @@ -91,7 +91,6 @@ static void chatTable_free_chatrooms(void *data){ linphone_chat_message_unref(linphone_chat_room_get_user_data(data)); linphone_chat_room_set_user_data(data, NULL); } - linphone_chat_room_unref(data); } - (void)loadData {