From 8eda10d77062244fb93c42cbdc105cc4d84f8222 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Fri, 30 Jul 2021 15:03:55 +0200 Subject: [PATCH] fix crash : try to use the core because of post event , though the core is already destroyed --- Classes/LinphoneManager.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 64bb1b296..85874abd8 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1437,13 +1437,6 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat linphone_core_destroy(theLinphoneCore); LOGI(@"Destroy linphonecore %p", theLinphoneCore); theLinphoneCore = nil; - - // Post event - NSDictionary *dict = - [NSDictionary dictionaryWithObject:[NSValue valueWithPointer:theLinphoneCore] forKey:@"core"]; - [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneCoreUpdate - object:LinphoneManager.instance - userInfo:dict]; } libStarted = FALSE; [[NSNotificationCenter defaultCenter] removeObserver:self];