keep optimizing

This commit is contained in:
Benjamin Reis 2017-01-20 10:08:46 +01:00
parent e2a58c43ef
commit 5f98187202

View file

@ -538,7 +538,7 @@ LinphoneFriendListStatus linphone_friend_list_import_friend(LinphoneFriendList *
}
lf->friend_list = list;
lf->lc = list->lc;
list->friends = bctbx_list_append(list->friends, linphone_friend_ref(lf));
list->friends = bctbx_list_prepend(list->friends, linphone_friend_ref(lf));
if (lf->refkey) {
bctbx_pair_t *pair = (bctbx_pair_t*) bctbx_pair_cchar_new(lf->refkey, linphone_friend_ref(lf));
bctbx_map_cchar_insert_and_delete(list->friends_map, pair);