summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBSummaryViewController.m6
-rw-r--r--macosx/HBTitle.m1
2 files changed, 6 insertions, 1 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];
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m
index 78bb097ae..dbb52a080 100644
--- a/macosx/HBTitle.m
+++ b/macosx/HBTitle.m
@@ -401,7 +401,6 @@ fail:
return _hb_title->crop[3];
}
-
- (NSArray<HBTitleAudioTrack *> *)audioTracks
{
if (!_audioTracks)