Commit 3be8c6bd authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix crash in friends handling when building with vCard disabled.

parent 90e24887
......@@ -340,7 +340,7 @@ bctbx_list_t* linphone_friend_get_addresses(LinphoneFriend *lf) {
if (sip_addresses) bctbx_list_free(sip_addresses);
return addresses;
} else {
return lf->uri ? bctbx_list_append(addresses, lf->uri) : NULL;
return lf->uri ? bctbx_list_append(addresses, linphone_address_clone(lf->uri)) : NULL;
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