summaryrefslogtreecommitdiffstats
path: root/macosx/HBImageAndTextCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBImageAndTextCell.m')
-rw-r--r--macosx/HBImageAndTextCell.m12
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;
}
}