aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-02-11 00:02:15 +0000
committerrowanbeentje <rowan@beent.je>2010-02-11 00:02:15 +0000
commit9536bcce8067a3167fb369f9a38094e24633068f (patch)
tree6375c59d69ce4fb304fc243e7d2576396d3b21ac
parent25f4268b73d93af0eb30a38214ced39d034250ff (diff)
downloadsequelpro-9536bcce8067a3167fb369f9a38094e24633068f.tar.gz
sequelpro-9536bcce8067a3167fb369f9a38094e24633068f.tar.bz2
sequelpro-9536bcce8067a3167fb369f9a38094e24633068f.zip
- Tweak SPFavoriteTextFieldCell, releasing the hostname on dealloc and retaining on copyWithZone: to avoid issues
-rw-r--r--Source/SPFavoriteTextFieldCell.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPFavoriteTextFieldCell.m b/Source/SPFavoriteTextFieldCell.m
index 355ee459..446e8161 100644
--- a/Source/SPFavoriteTextFieldCell.m
+++ b/Source/SPFavoriteTextFieldCell.m
@@ -59,8 +59,10 @@
SPFavoriteTextFieldCell *cell = (SPFavoriteTextFieldCell *)[super copyWithZone:zone];
cell->favoriteName = nil;
-
cell->favoriteName = [favoriteName retain];
+
+ cell->favoriteHost = nil;
+ cell->favoriteHost = [favoriteHost retain];
return cell;
}
@@ -210,6 +212,7 @@
- (void)dealloc
{
[favoriteName release], favoriteName = nil;
+ [favoriteHost release], favoriteHost = nil;
[super dealloc];
}