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/HBChapterTitlesController.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/HBChapterTitlesController.m')
-rw-r--r-- | macosx/HBChapterTitlesController.m | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/macosx/HBChapterTitlesController.m b/macosx/HBChapterTitlesController.m index 582e9bd52..b3daebc9e 100644 --- a/macosx/HBChapterTitlesController.m +++ b/macosx/HBChapterTitlesController.m @@ -13,7 +13,7 @@ IBOutlet NSTableColumn * fChapterTableNameColumn; } -@property (nonatomic, readwrite, retain) NSMutableArray *chapterTitles; +@property (nonatomic, readwrite, strong) NSMutableArray *chapterTitles; @end @@ -29,12 +29,6 @@ return self; } -- (void)dealloc -{ - [_chapterTitles release]; - [super dealloc]; -} - - (void)setJob:(HBJob *)job { _job = job; @@ -134,8 +128,7 @@ a timer to avoid interfering with the chain of events that handles the edit. */ { chapterName = [[NSString alloc] initWithContentsOfURL:[panel URL] encoding:NSUTF8StringEncoding error:NULL]; chaptersArray = [chapterName componentsSeparatedByString:@"\n"]; - [chapterName release]; - chaptersMutableArray = [[chaptersArray mutableCopy] autorelease]; + chaptersMutableArray = [chaptersArray mutableCopy]; chapters = [self numberOfRowsInTableView:fChapterTable]; if ([chaptersMutableArray count] > 0) { |