mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
Fix memory leak on linphone core unfree variables
This commit is contained in:
parent
be6165d861
commit
e546e97a35
1 changed files with 11 additions and 1 deletions
|
|
@ -5176,7 +5176,6 @@ static void linphone_core_uninit(LinphoneCore *lc)
|
|||
usleep(50000);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef BUILD_UPNP
|
||||
if(lc->upnp != NULL) {
|
||||
linphone_upnp_context_destroy(lc->upnp);
|
||||
|
|
@ -5214,6 +5213,17 @@ static void linphone_core_uninit(LinphoneCore *lc)
|
|||
|
||||
ms_list_for_each(lc->last_recv_msg_ids,ms_free);
|
||||
lc->last_recv_msg_ids=ms_list_free(lc->last_recv_msg_ids);
|
||||
|
||||
// Free struct variable
|
||||
if(lc->zrtp_secrets_cache != NULL) {
|
||||
ms_free(lc->zrtp_secrets_cache);
|
||||
}
|
||||
if(lc->play_file!=NULL){
|
||||
ms_free(lc->play_file);
|
||||
}
|
||||
if(lc->rec_file!=NULL){
|
||||
ms_free(lc->rec_file);
|
||||
}
|
||||
|
||||
linphone_core_free_payload_types(lc);
|
||||
ortp_exit();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue