summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitlesDefaults.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-11-02 15:13:46 +0000
committerritsuka <[email protected]>2014-11-02 15:13:46 +0000
commit18ee2d5b932919e60396060ea063053ac8fc711a (patch)
tree115b67dfbe62a097d274c458113ad3f763ba37ab /macosx/HBSubtitlesDefaults.m
parent2857c1fd3d6762d787a90474440b1def74223232 (diff)
MacGui: removed two useless array creation and made a copy of the trackSelectionLanguages ivar before assigning it to the preset dict.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6497 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBSubtitlesDefaults.m')
-rw-r--r--macosx/HBSubtitlesDefaults.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBSubtitlesDefaults.m b/macosx/HBSubtitlesDefaults.m
index 71046c060..544123de1 100644
--- a/macosx/HBSubtitlesDefaults.m
+++ b/macosx/HBSubtitlesDefaults.m
@@ -52,7 +52,8 @@
{
preset[@"SubtitleTrackSelectionBehavior"] = @"none";
}
- preset[@"SubtitleLanguageList"] = self.trackSelectionLanguages;
+
+ preset[@"SubtitleLanguageList"] = [[self.trackSelectionLanguages copy] autorelease];
preset[@"SubtitleAddCC"] = @(self.addCC);
preset[@"SubtitleAddForeignAudioSearch"] = @(self.addForeignAudioSearch);
preset[@"SubtitleAddForeignAudioSubtitle"] = @(self.addForeignAudioSubtitle);