mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
make sure even linphone friends created with legacy constructor do not lead to a crash if used in friend-list
This commit is contained in:
parent
2c929a08c7
commit
4b1cfa3ddf
1 changed files with 1 additions and 0 deletions
|
|
@ -319,6 +319,7 @@ LinphoneFriendListStatus linphone_friend_list_add_friend(LinphoneFriendList *lis
|
|||
if (tmp) ms_free(tmp);
|
||||
} else {
|
||||
friend->in_list = TRUE;
|
||||
friend->lc = list->lc; /*In case not set yet*/
|
||||
list->friends = ms_list_append(list->friends, linphone_friend_ref(friend));
|
||||
}
|
||||
return LinphoneFriendListOK;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue