Prevent random crash in history removal

This commit is contained in:
Christophe Deschamps 2022-03-02 08:58:31 +01:00
parent 9740a18219
commit eb26a33d75

View file

@ -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)]];