From 9536bcce8067a3167fb369f9a38094e24633068f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 11 Feb 2010 00:02:15 +0000 Subject: - Tweak SPFavoriteTextFieldCell, releasing the hostname on dealloc and retaining on copyWithZone: to avoid issues --- Source/SPFavoriteTextFieldCell.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source') 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]; } -- cgit v1.2.3