Commit 4cb8038c authored by Ronan's avatar Ronan Committed by Ronan

fix(core): add a linphone_core_create_primary_contact_parsed function to avoid leak with wrappers

parent 61192363
Pipeline #457 failed with stage
in 0 seconds
......@@ -2672,6 +2672,10 @@ LinphoneAddress *linphone_core_get_primary_contact_parsed(LinphoneCore *lc){
return linphone_address_new(linphone_core_get_primary_contact(lc));
}
LinphoneAddress *linphone_core_create_primary_contact_parsed (LinphoneCore *lc) {
return linphone_address_new(linphone_core_get_primary_contact(lc));
}
LinphoneStatus linphone_core_set_audio_codecs(LinphoneCore *lc, bctbx_list_t *codecs){
if (lc->codecs_conf.audio_codecs!=NULL) bctbx_list_free(lc->codecs_conf.audio_codecs);
lc->codecs_conf.audio_codecs=codecs;
......
......@@ -1557,12 +1557,21 @@ LINPHONE_PUBLIC void linphone_core_enable_ipv6(LinphoneCore *lc, bool_t val);
/**
* Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object
* instead of const char*
* instead of const char *.
*
* @ingroup proxies
* @deprecated Use linphone_core_create_primary_contact_parsed() instead. Deprecated since 2018-10-22.
**/
LINPHONE_PUBLIC LinphoneAddress *linphone_core_get_primary_contact_parsed(LinphoneCore *lc);
/**
* Same as linphone_core_get_primary_contact() but the result is a #LinphoneAddress object
* instead of const char *.
*
* @ingroup proxies
**/
LINPHONE_PUBLIC LinphoneAddress *linphone_core_create_primary_contact_parsed (LinphoneCore *lc);
LINPHONE_PUBLIC const char * linphone_core_get_identity(LinphoneCore *lc);
/**
......
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