diff options
author | ritsuka <[email protected]> | 2015-03-17 13:56:21 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-03-17 13:56:21 +0000 |
commit | 48a9e546878ae074202e0301f428193b7915d68f (patch) | |
tree | cf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBPreset.m | |
parent | 220bd888e05696acbe1dd47f96ded78c389fc27f (diff) |
MacGui: convert the mac gui to Objective-C ARC.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreset.m')
-rw-r--r-- | macosx/HBPreset.m | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m index 7cf979152..0ad0a8c86 100644 --- a/macosx/HBPreset.m +++ b/macosx/HBPreset.m @@ -15,7 +15,7 @@ { _name = [title copy]; _isBuiltIn = builtIn; - _content = [content retain]; + _content = content; _presetDescription = [content[@"PresetDescription"] copy]; } return self; @@ -45,15 +45,6 @@ return self; } -- (void)dealloc -{ - [_name release]; - [_content release]; - [_presetDescription release]; - - [super dealloc]; -} - - (id)copyWithZone:(NSZone *)zone { HBPreset *node = [[self class] allocWithZone:zone]; @@ -62,7 +53,7 @@ node->_presetDescription = [self.presetDescription copy]; for (HBPreset *children in self.children) { - [node.children addObject:[[children copy] autorelease]]; + [node.children addObject:[children copy]]; } return node; @@ -75,7 +66,6 @@ - (void)setName:(NSString *)name { - [_name autorelease]; _name = [name copy]; [self.delegate nodeDidChange]; |