fix crash : try to use the core because of post event , though the core is already destroyed

This commit is contained in:
Danmei Chen 2021-07-30 15:03:55 +02:00
parent a3f63cc70c
commit 8eda10d770

View file

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