diff options
author | ritsuka <[email protected]> | 2014-11-24 19:20:11 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-11-24 19:20:11 +0000 |
commit | dd65c93d74873038e9ff06b00e34ad2198b2a17d (patch) | |
tree | 641cdf19c9c1f7148d67549f926f150d312d8b4f /macosx/Controller.m | |
parent | 139dca1885050b6b3a5fb0b1608dab60e41dbad1 (diff) |
MacGui: added a missing retain, it caused a crash when selecting a new default preset if the old default was a default preset that had been deleted by they built-in presets upgrade.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6551 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index a9f58c885..2e9b0dc24 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -81,7 +81,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It // we init the HBPresetsManager class NSURL *presetsURL = [NSURL fileURLWithPath:[[HBUtilities appSupportPath] stringByAppendingPathComponent:@"UserPresets.plist"]]; presetManager = [[HBPresetsManager alloc] initWithURL:presetsURL]; - _selectedPreset = presetManager.defaultPreset; + _selectedPreset = [presetManager.defaultPreset retain]; // Workaround to avoid a bug in Snow Leopard // we can switch back to [[NSApplication sharedApplication] applicationIconImage] |