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/HBDVDDetector.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/HBDVDDetector.m')
-rw-r--r-- | macosx/HBDVDDetector.m | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/macosx/HBDVDDetector.m b/macosx/HBDVDDetector.m index 05ff786b1..8db9d36f2 100644 --- a/macosx/HBDVDDetector.m +++ b/macosx/HBDVDDetector.m @@ -31,7 +31,7 @@ + (HBDVDDetector *)detectorForPath: (NSString *)aPath { - return [[[self alloc] initWithPath:aPath] autorelease]; + return [[self alloc] initWithPath:aPath]; } @@ -40,23 +40,13 @@ NSAssert(aPath, @"nil string passed to drive detector."); if( self = [super init] ) { - path = [aPath retain]; + path = aPath; bsdName = nil; } return self; } -- (void)dealloc -{ - [path release]; - path = nil; - [bsdName release]; - bsdName = nil; - [super dealloc]; -} - - - (BOOL)isVideoDVD { return ( [self pathHasVideoTS] && [self deviceIsDVD] ); @@ -90,7 +80,7 @@ bsdName = [bsdName substringFromIndex:5]; } - return [bsdName retain]; + return bsdName; } |