mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
fix(c-core): avoid memory leak on chat room destruction
This commit is contained in:
parent
28944e466e
commit
7a100ac971
1 changed files with 2 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue