diff options
Diffstat (limited to 'macosx/HBSummaryViewController.m')
-rw-r--r-- | macosx/HBSummaryViewController.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/HBSummaryViewController.m b/macosx/HBSummaryViewController.m index a62f9d8e9..eff36e1fa 100644 --- a/macosx/HBSummaryViewController.m +++ b/macosx/HBSummaryViewController.m @@ -54,6 +54,12 @@ static void *HBSummaryViewControllerPreferencesContext = &HBSummaryViewControlle return self; } +- (void)dealloc +{ + self.job = nil; + [NSUserDefaultsController.sharedUserDefaultsController removeObserver:self forKeyPath:@"values.HBShowSummaryPreview" context:HBSummaryViewControllerPreferencesContext]; +} + - (void)viewDidLoad { [super viewDidLoad]; |