From 890905ced5681dcfac9f63f81edc6644cf1a7b84 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 9 Dec 2015 16:18:35 +0100 Subject: [PATCH] HistoryList: fix crash --- Classes/Base.lproj/SideMenuView.xib | 2 +- Classes/HistoryListTableView.m | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Base.lproj/SideMenuView.xib b/Classes/Base.lproj/SideMenuView.xib index 0a99b179d..4aabcd766 100644 --- a/Classes/Base.lproj/SideMenuView.xib +++ b/Classes/Base.lproj/SideMenuView.xib @@ -17,7 +17,7 @@ - + diff --git a/Classes/HistoryListTableView.m b/Classes/HistoryListTableView.m index 90e8a694d..e73bff879 100644 --- a/Classes/HistoryListTableView.m +++ b/Classes/HistoryListTableView.m @@ -118,6 +118,8 @@ [self.sections setObject:eventsOnThisDay forKey:startDate]; } + linphone_call_log_set_user_data(log, NULL); + // if this contact was already the previous entry, do not add it twice LinphoneCallLog *prev = [eventsOnThisDay lastObject] ? [[eventsOnThisDay lastObject] pointerValue] : NULL; if (prev && linphone_address_weak_equal(linphone_call_log_get_remote_address(prev),