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