From 48a9e546878ae074202e0301f428193b7915d68f Mon Sep 17 00:00:00 2001 From: ritsuka Date: Tue, 17 Mar 2015 13:56:21 +0000 Subject: MacGui: convert the mac gui to Objective-C ARC. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBDVDDetector.m | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'macosx/HBDVDDetector.m') 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; } -- cgit v1.2.3