try to fix crash: linphone_chat_room_get_capabilities

This commit is contained in:
Danmei Chen 2020-03-30 10:38:57 +02:00
parent 0ca42b5d18
commit 763d56a0bc

View file

@ -205,6 +205,7 @@ static UICompositeViewDescription *compositeDescription = nil;
if (_chatRoom && _chatRoomCbs) {
linphone_chat_room_remove_callbacks(_chatRoom, _chatRoomCbs);
_chatRoomCbs = NULL;
_chatRoom = NULL;
}
[_messageField resignFirstResponder];
@ -218,6 +219,7 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)didEnterBackground:(NSNotification *)notif {
linphone_chat_room_remove_callbacks(_chatRoom, _chatRoomCbs);
_chatRoomCbs = NULL;
_chatRoom = NULL;
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {