HistoryList: fix crash

This commit is contained in:
Gautier Pelloux-Prayer 2015-12-09 16:18:35 +01:00
parent 62f121ee44
commit 890905ced5
2 changed files with 3 additions and 1 deletions

View file

@ -17,7 +17,7 @@
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<swipeGestureRecognizer enabled="NO" direction="left" id="JRs-i1-zCl" userLabel="OnLateralSwipe">
<swipeGestureRecognizer direction="left" id="JRs-i1-zCl" userLabel="OnLateralSwipe">
<connections>
<action selector="onLateralSwipe:" destination="-1" id="5td-pZ-6Vc"/>
<outlet property="delegate" destination="-1" id="yhK-9x-aT0"/>

View file

@ -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),