diff options
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; } |