From e6c1496d3f9edfd828b9b1a1da6a2efe679e567a Mon Sep 17 00:00:00 2001 From: REIS Benjamin Date: Fri, 21 Oct 2016 11:17:01 +0200 Subject: [PATCH] Fix crash when navigating too quickly in double screened views on IPAD --- Classes/ChatsListView.m | 1 + Classes/HistoryListView.m | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Classes/ChatsListView.m b/Classes/ChatsListView.m index dd12891d7..f0be82727 100644 --- a/Classes/ChatsListView.m +++ b/Classes/ChatsListView.m @@ -43,6 +43,7 @@ [super viewWillDisappear:animated]; [NSNotificationCenter.defaultCenter removeObserver:self name:kLinphoneMessageReceived object:nil]; + self.view = NULL; } #pragma mark - Event Functions diff --git a/Classes/HistoryListView.m b/Classes/HistoryListView.m index 5d924a4ee..c72aa92b6 100644 --- a/Classes/HistoryListView.m +++ b/Classes/HistoryListView.m @@ -63,6 +63,10 @@ static UICompositeViewDescription *compositeDescription = nil; [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneCallUpdate object:self]; } +- (void) viewWillDisappear:(BOOL)animated { + self.view = NULL; +} + #pragma mark - - (void)changeView:(HistoryView)view {