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/HBImageAndTextCell.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/HBImageAndTextCell.m')
-rw-r--r-- | macosx/HBImageAndTextCell.m | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/macosx/HBImageAndTextCell.m b/macosx/HBImageAndTextCell.m index eebe2efca..57a4b023b 100644 --- a/macosx/HBImageAndTextCell.m +++ b/macosx/HBImageAndTextCell.m @@ -91,17 +91,10 @@ scaleProportionally(NSSize imageSize, NSRect canvasRect) return self; } -- (void)dealloc -{ - [image release]; - image = nil; - [super dealloc]; -} - - copyWithZone:(NSZone *)zone { HBImageAndTextCell *cell = (HBImageAndTextCell *)[super copyWithZone:zone]; - cell->image = [image retain]; + cell->image = image; return cell; } @@ -109,8 +102,7 @@ scaleProportionally(NSSize imageSize, NSRect canvasRect) { if (anImage != image) { - [image release]; - image = [anImage retain]; + image = anImage; } } |