mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
try to fix crash: linphone_chat_room_get_capabilities
This commit is contained in:
parent
0ca42b5d18
commit
763d56a0bc
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue