mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
fix(core): avoid memory leaks
This commit is contained in:
parent
f03164f2f7
commit
76c884abba
2 changed files with 6 additions and 0 deletions
|
|
@ -420,6 +420,9 @@ static void linphone_event_destroy(LinphoneEvent *lev){
|
|||
if (lev->ei) linphone_error_info_unref(lev->ei);
|
||||
if (lev->op) sal_op_release(lev->op);
|
||||
if (lev->send_custom_headers) sal_custom_header_free(lev->send_custom_headers);
|
||||
if (lev->to_address) linphone_address_unref(lev->to_address);
|
||||
if (lev->from_address) linphone_address_unref(lev->from_address);
|
||||
|
||||
ms_free(lev->name);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -246,6 +246,9 @@ void _linphone_proxy_config_destroy(LinphoneProxyConfig *cfg){
|
|||
if (cfg->ei){
|
||||
linphone_error_info_unref(cfg->ei);
|
||||
}
|
||||
|
||||
if (cfg->contact_address) linphone_address_unref(cfg->contact_address);
|
||||
|
||||
_linphone_proxy_config_release_ops(cfg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue