summaryrefslogtreecommitdiffstats
path: root/macosx/HBTitle.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-03-17 13:56:21 +0000
committerritsuka <[email protected]>2015-03-17 13:56:21 +0000
commit48a9e546878ae074202e0301f428193b7915d68f (patch)
treecf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBTitle.m
parent220bd888e05696acbe1dd47f96ded78c389fc27f (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/HBTitle.m')
-rw-r--r--macosx/HBTitle.m16
1 files changed, 1 insertions, 15 deletions
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m
index 7d44baef3..be5158327 100644
--- a/macosx/HBTitle.m
+++ b/macosx/HBTitle.m
@@ -33,7 +33,7 @@ extern NSString *keySubTrackSrtCharCode;
@interface HBTitle ()
-@property (nonatomic, readwrite) NSString *name;
+@property (nonatomic, readwrite, strong) NSString *name;
@property (nonatomic, readwrite) NSArray *audioTracks;
@property (nonatomic, readwrite) NSArray *subtitlesTracks;
@@ -50,7 +50,6 @@ extern NSString *keySubTrackSrtCharCode;
{
if (!title)
{
- [self release];
return nil;
}
@@ -61,16 +60,6 @@ extern NSString *keySubTrackSrtCharCode;
return self;
}
-- (void)dealloc
-{
- [_name release];
- [_audioTracks release];
- [_subtitlesTracks release];
- [_chapters release];
-
- [super dealloc];
-}
-
- (NSString *)name
{
if (!_name)
@@ -82,8 +71,6 @@ extern NSString *keySubTrackSrtCharCode;
{
_name = [@(self.hb_title->path) lastPathComponent];
}
-
- [_name retain];
}
return _name;
@@ -233,5 +220,4 @@ extern NSString *keySubTrackSrtCharCode;
return _chapters;
}
-
@end