From eb26a33d75686aa76722a2f8f68956386837d949 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Wed, 2 Mar 2022 08:58:31 +0100 Subject: [PATCH] Prevent random crash in history removal --- Classes/HistoryListTableView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/HistoryListTableView.m b/Classes/HistoryListTableView.m index e2bbcc374..5eb719098 100644 --- a/Classes/HistoryListTableView.m +++ b/Classes/HistoryListTableView.m @@ -146,7 +146,7 @@ if (prev && linphone_address_weak_equal(linphone_call_log_get_remote_address(prev), linphone_call_log_get_remote_address(log))) { bctbx_list_t *list = linphone_call_log_get_user_data(prev); - list = bctbx_list_append(list, log); + list = bctbx_list_append(list, linphone_call_log_ref(log)); linphone_call_log_set_user_data(prev, list); } else { [eventsOnThisDay addObject:[NSValue valueWithPointer:linphone_call_log_ref(log)]];