From a14a8f9f2119fae927c1c36d64849ba64431759e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Tue, 15 Nov 2016 13:45:47 +0100 Subject: [PATCH] Switch the unown parameter to FALSE in the declaration of LinphoneFriendList That commit doesn't fix anything but it is a better way to have LinphoneFriendList objects created with a refcount to 1 systematically. --- coreapi/friendlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index 9db5c74e0..b51afb345 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -361,7 +361,6 @@ static LinphoneFriendList * linphone_friend_list_new(void) { LinphoneFriendList *list = belle_sip_object_new(LinphoneFriendList); list->cbs = linphone_friend_list_cbs_new(); list->enable_subscriptions = TRUE; - belle_sip_object_ref(list); return list; } @@ -387,7 +386,7 @@ BELLE_SIP_INSTANCIATE_VPTR(LinphoneFriendList, belle_sip_object_t, (belle_sip_object_destroy_t)linphone_friend_list_destroy, NULL, // clone NULL, // marshal - TRUE + FALSE );