Skip to content
Permalink
Browse files

Fix an issue where a KV Observer was not removed on dealloc resulting…

… in KVO messaging a Zombie and crashing
  • Loading branch information...
dmoagx committed Jan 11, 2015
1 parent 07ad098 commit f2bb1116a22dcbd680a61637532108d0c8497b99
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/SPDatabaseDocument.m
@@ -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];

0 comments on commit f2bb111

Please sign in to comment.
You can’t perform that action at this time.