Skip to content

Commit f01e6db

Browse files
Merge pull request #36 from cbess/patch-1
Fix potential keyboard observer crash by cbess
2 parents f9787b3 + c1816cf commit f01e6db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

WYPopoverController/WYPopoverController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,8 @@ - (void)keyboardWillHide:(NSNotification *)notification
21882188

21892189
- (void)dealloc
21902190
{
2191+
[[NSNotificationCenter defaultCenter] removeObserver:self];
2192+
21912193
barButtonItem = nil;
21922194
passthroughViews = nil;
21932195
viewController = nil;

0 commit comments

Comments
 (0)