fix leak of messages in tester

This commit is contained in:
Simon Morlat 2014-09-08 19:41:45 +02:00
parent c6a3053756
commit 17607ab3b2
2 changed files with 2 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);