aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-06 14:07:12 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-06 14:07:12 +0000
commit8b39d2dbe699d1108a44f2e490817d09205988ef (patch)
tree4b0760ee7c3dbf541529c06327aacaee493fcd77
parent2b65cd016551fa211409bcde6278f5593afd34e2 (diff)
downloadsequelpro-8b39d2dbe699d1108a44f2e490817d09205988ef.tar.gz
sequelpro-8b39d2dbe699d1108a44f2e490817d09205988ef.tar.bz2
sequelpro-8b39d2dbe699d1108a44f2e490817d09205988ef.zip
Fix bug that caused newly added nodes to be autoreleased twice resulting in a crash.
-rw-r--r--Source/SPFavoritesController.m4
1 files changed, 2 insertions, 2 deletions
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;
}
/**