forked from mirrors/linphone-iphone
Destroy chatroom objective C object when entering background to avoid a crash caused by a callstatechagned event from background
This commit is contained in:
parent
7bafd37081
commit
15ff3fd9a6
1 changed files with 2 additions and 0 deletions
|
|
@ -68,9 +68,11 @@
|
|||
ChatConversationView *view = VIEW(ChatConversationView);
|
||||
[view removeCallBacks];
|
||||
[view.tableController setChatRoom:NULL];
|
||||
[view setChatRoom:NULL];
|
||||
} else if (PhoneMainView.instance.currentView == ChatConversationInfoView.compositeViewDescription) {
|
||||
ChatConversationInfoView *view = VIEW(ChatConversationInfoView);
|
||||
[view removeCallbacks];
|
||||
[view setRoom:NULL];
|
||||
} else if (PhoneMainView.instance.currentView == RecordingsListView.compositeViewDescription || PhoneMainView.instance.currentView == DevicesListView.compositeViewDescription) {
|
||||
// To avoid crash
|
||||
[PhoneMainView.instance changeCurrentView:DialerView.compositeViewDescription];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue