From b551bb92cd1c5d6525f248613748d7e1d8caa22f Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 8 Feb 2017 09:12:52 +0100 Subject: [PATCH] fix warnings --- coreapi/factory.c | 2 +- coreapi/friendlist.c | 4 ++-- coreapi/vcard.cc | 2 +- coreapi/vcard_private.h | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/coreapi/factory.c b/coreapi/factory.c index e3f171cb0..320c6bdd7 100644 --- a/coreapi/factory.c +++ b/coreapi/factory.c @@ -87,5 +87,5 @@ LinphoneAuthInfo *linphone_factory_create_auth_info(const LinphoneFactory *facto } LinphoneVcard *linphone_factory_create_vcard(LinphoneFactory *factory) { - return linphone_vcard_new(); + return _linphone_vcard_new(); } diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index f00727ffe..97e01dc41 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -963,7 +963,7 @@ int linphone_friend_list_import_friends_from_vcard4_file(LinphoneFriendList *lis } linphone_friend_unref(lf); } else { - linphone_vcard_free(vcard); + linphone_vcard_unref(vcard); } vcards_iterator = bctbx_list_next(vcards_iterator); } @@ -1002,7 +1002,7 @@ int linphone_friend_list_import_friends_from_vcard4_buffer(LinphoneFriendList *l } linphone_friend_unref(lf); } else { - linphone_vcard_free(vcard); + linphone_vcard_unref(vcard); } vcards_iterator = bctbx_list_next(vcards_iterator); } diff --git a/coreapi/vcard.cc b/coreapi/vcard.cc index f05369ba3..0431e52df 100644 --- a/coreapi/vcard.cc +++ b/coreapi/vcard.cc @@ -89,7 +89,7 @@ BELLE_SIP_INSTANCIATE_VPTR(LinphoneVcard, belle_sip_object_t, FALSE ); -static LinphoneVcard* _linphone_vcard_new(void) { +LinphoneVcard* _linphone_vcard_new(void) { LinphoneVcard* vCard = belle_sip_object_new(LinphoneVcard); vCard->belCard = belcard::BelCardGeneric::create(); return vCard; diff --git a/coreapi/vcard_private.h b/coreapi/vcard_private.h index d7871bd90..2ef951ec2 100644 --- a/coreapi/vcard_private.h +++ b/coreapi/vcard_private.h @@ -99,6 +99,8 @@ bool_t linphone_vcard_compare_md5_hash(LinphoneVcard *vCard); void linphone_vcard_clean_cache(LinphoneVcard *vCard); +LinphoneVcard* _linphone_vcard_new(void); + #ifdef __cplusplus } #endif