mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix leak of messages in tester
This commit is contained in:
parent
c6a3053756
commit
17607ab3b2
2 changed files with 2 additions and 0 deletions
|
|
@ -1347,6 +1347,7 @@ static void _linphone_chat_message_destroy(LinphoneChatMessage* msg) {
|
|||
linphone_content_uninit(msg->file_transfer_information);
|
||||
ms_free(msg->file_transfer_information);
|
||||
}
|
||||
ms_message("LinphoneChatMessage [%p] destroyed.",msg);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -252,6 +252,7 @@ void linphone_core_manager_stop(LinphoneCoreManager *mgr){
|
|||
}
|
||||
|
||||
void linphone_core_manager_destroy(LinphoneCoreManager* mgr) {
|
||||
if (mgr->stat.last_received_chat_message) linphone_chat_message_unref(mgr->stat.last_received_chat_message);
|
||||
if (mgr->lc) linphone_core_destroy(mgr->lc);
|
||||
if (mgr->identity) linphone_address_destroy(mgr->identity);
|
||||
ms_free(mgr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue