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/HBTitle.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/HBTitle.m')
-rw-r--r-- | macosx/HBTitle.m | 16 |
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 |