Commit 5e80df36 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix memory leaks.

parent 18643634
...@@ -248,6 +248,8 @@ void _linphone_proxy_config_destroy(LinphoneProxyConfig *cfg){ ...@@ -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) 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); _linphone_proxy_config_release_ops(cfg);
} }
......
...@@ -36,6 +36,7 @@ LinphoneAddress *linphone_address_new (const char *address) { ...@@ -36,6 +36,7 @@ LinphoneAddress *linphone_address_new (const char *address) {
LinphoneAddress *object = L_INIT(Address); LinphoneAddress *object = L_INIT(Address);
L_SET_CPP_PTR_FROM_C_OBJECT(object, cppPtr); L_SET_CPP_PTR_FROM_C_OBJECT(object, cppPtr);
delete cppPtr;
return object; return object;
} }
......
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