fix(c-core): avoid memory leak on chat room destruction

This commit is contained in:
Ronan Abhamon 2017-12-18 11:45:34 +01:00
parent 28944e466e
commit 7a100ac971

View file

@ -6003,6 +6003,8 @@ void _linphone_core_uninit(LinphoneCore *lc)
ms_usleep(10000);
}
lc->chat_rooms = bctbx_list_free_with_data(lc->chat_rooms, (bctbx_list_free_func)linphone_chat_room_unref);
linphone_core_set_state(lc,LinphoneGlobalShutdown,"Shutting down");
#ifdef VIDEO_ENABLED
if (lc->previewstream!=NULL){