From 8b39d2dbe699d1108a44f2e490817d09205988ef Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 6 Mar 2011 14:07:12 +0000 Subject: Fix bug that caused newly added nodes to be autoreleased twice resulting in a crash. --- Source/SPFavoritesController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPFavoritesController.m b/Source/SPFavoritesController.m index 54116885..7080c9b9 100644 --- a/Source/SPFavoritesController.m +++ b/Source/SPFavoritesController.m @@ -143,7 +143,7 @@ static SPFavoritesController *sharedFavoritesController = nil; [self _addNode:node asChildOfNode:parent]; - return [node autorelease]; + return node; } /** @@ -160,7 +160,7 @@ static SPFavoritesController *sharedFavoritesController = nil; [self _addNode:node asChildOfNode:parent]; - return [node autorelease]; + return node; } /** -- cgit v1.2.3