From a3e599b438a8e550c360b4e1f0b31a69728e1290 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sat, 22 Oct 2016 10:33:08 +0200 Subject: [PATCH] fix crash when not building with vcard --- coreapi/friend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/friend.c b/coreapi/friend.c index 387997115..c71b729d7 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -333,7 +333,7 @@ bctbx_list_t* linphone_friend_get_addresses(const LinphoneFriend *lf) { return result; } else { bctbx_list_t *addresses = NULL; - return lf->uri ? bctbx_list_append(addresses, lf->uri) : NULL; + return lf->uri ? bctbx_list_append(addresses, linphone_address_clone(lf->uri)) : NULL; } }