Fix memory leaks.

This commit is contained in:
Ghislain MARY 2017-09-28 15:31:29 +02:00
parent 18643634a7
commit 5e80df36fa
2 changed files with 3 additions and 0 deletions

View file

@ -248,6 +248,8 @@ void _linphone_proxy_config_destroy(LinphoneProxyConfig *cfg){
}
if (cfg->contact_address) linphone_address_unref(cfg->contact_address);
if (cfg->contact_address_without_params)
linphone_address_unref(cfg->contact_address_without_params);
_linphone_proxy_config_release_ops(cfg);
}

View file

@ -36,6 +36,7 @@ LinphoneAddress *linphone_address_new (const char *address) {
LinphoneAddress *object = L_INIT(Address);
L_SET_CPP_PTR_FROM_C_OBJECT(object, cppPtr);
delete cppPtr;
return object;
}