Commit 4b1cfa3d authored by jehan's avatar jehan
Browse files

make sure even linphone friends created with legacy constructor do not lead to...

make sure even linphone friends created with legacy constructor do not lead to a crash if used in friend-list
parent 2c929a08
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment