aboutsummaryrefslogtreecommitdiffstats
path: root/Source/ImageAndTextCell.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-14 15:57:46 +0000
committerrowanbeentje <rowan@beent.je>2010-03-14 15:57:46 +0000
commitbd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa (patch)
tree98dcc63f2cae911f2ae9f7f1fc2af3290dd5a265 /Source/ImageAndTextCell.m
parent094c2779974ba765fc42af063d094e2dc136f225 (diff)
downloadsequelpro-bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa.tar.gz
sequelpro-bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa.tar.bz2
sequelpro-bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa.zip
- Review copyWithZone: implementations and standardise on best practice recommendations
Diffstat (limited to 'Source/ImageAndTextCell.m')
-rw-r--r--Source/ImageAndTextCell.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/ImageAndTextCell.m b/Source/ImageAndTextCell.m
index d67b45be..51834825 100644
--- a/Source/ImageAndTextCell.m
+++ b/Source/ImageAndTextCell.m
@@ -18,7 +18,8 @@
- copyWithZone:(NSZone *)zone
{
ImageAndTextCell *cell = (ImageAndTextCell *)[super copyWithZone:zone];
- cell->image = [image retain];
+ cell->image = nil;
+ if (image) cell->image = [image copyWithZone:zone];
return cell;
}