mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-21 04:38:29 +00:00
fix crash
This commit is contained in:
parent
849ef0f9ed
commit
49ad4b81c6
1 changed files with 4 additions and 1 deletions
|
|
@ -253,7 +253,10 @@ LinphoneFriendList * linphone_friend_list_ref(LinphoneFriendList *list) {
|
|||
void _linphone_friend_list_release(LinphoneFriendList *list){
|
||||
/*drops all references to core and unref*/
|
||||
list->lc = NULL;
|
||||
if (list->event != NULL) linphone_event_unref(list->event);
|
||||
if (list->event != NULL) {
|
||||
linphone_event_unref(list->event);
|
||||
list->event = NULL;
|
||||
}
|
||||
list->friends = ms_list_free_with_data(list->friends, (void (*)(void *))_linphone_friend_release);
|
||||
belle_sip_object_unref(list);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue