mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
Fix a few leaks.
This commit is contained in:
parent
fd06569c8a
commit
9c955aed32
3 changed files with 5 additions and 2 deletions
|
|
@ -483,9 +483,9 @@ void sal_uninit(Sal* sal){
|
|||
belle_sip_object_unref(sal->prov);
|
||||
belle_sip_object_unref(sal->stack);
|
||||
belle_sip_object_unref(sal->listener);
|
||||
if (sal->uuid) ms_free(sal->uuid);
|
||||
if (sal->root_ca) ms_free(sal->root_ca);
|
||||
ms_free(sal);
|
||||
return ;
|
||||
};
|
||||
|
||||
int sal_add_listen_port(Sal *ctx, SalAddress* addr){
|
||||
|
|
|
|||
|
|
@ -5651,7 +5651,9 @@ static void linphone_core_uninit(LinphoneCore *lc)
|
|||
if(lc->rec_file!=NULL){
|
||||
ms_free(lc->rec_file);
|
||||
}
|
||||
|
||||
if(lc->presence_model){
|
||||
linphone_presence_model_unref(lc->presence_model);
|
||||
}
|
||||
linphone_core_free_payload_types(lc);
|
||||
|
||||
linphone_core_message_storage_close(lc);
|
||||
|
|
|
|||
|
|
@ -483,6 +483,7 @@ void sal_auth_info_delete(SalAuthInfo* auth_info) {
|
|||
if (auth_info->realm) ms_free(auth_info->realm);
|
||||
if (auth_info->domain) ms_free(auth_info->domain);
|
||||
if (auth_info->password) ms_free(auth_info->password);
|
||||
if (auth_info->ha1) ms_free(auth_info->ha1);
|
||||
if (auth_info->certificates) sal_certificates_chain_delete(auth_info->certificates);
|
||||
if (auth_info->key) sal_signing_key_delete(auth_info->key);
|
||||
ms_free(auth_info);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue