Skip to content

Commit

Permalink
Fix an issue where a KV Observer was not removed on dealloc resulting…
Browse files Browse the repository at this point in the history
… in KVO messaging a Zombie and crashing
  • Loading branch information
dmoagx committed Jan 11, 2015
1 parent 07ad098 commit f2bb111
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/SPDatabaseDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -6264,6 +6264,7 @@ - (void)dealloc
[prefs removeObserver:tableSourceInstance forKeyPath:SPUseMonospacedFonts];
[prefs removeObserver:[SPQueryController sharedQueryController] forKeyPath:SPUseMonospacedFonts];
[prefs removeObserver:tableContentInstance forKeyPath:SPGlobalResultTableFont];
[prefs removeObserver:tableContentInstance forKeyPath:SPDisplayBinaryDataAsHex];
[prefs removeObserver:[SPQueryController sharedQueryController] forKeyPath:SPConsoleEnableLogging];
[prefs removeObserver:self forKeyPath:SPConsoleEnableLogging];

Expand Down

0 comments on commit f2bb111

Please sign in to comment.