diff options
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 58eb4002..a2b3c06c 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -1127,7 +1127,10 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, NSMutableArray *nodes = [[node mutableChildNodes] mutableCopy]; // If this node only has one child and it's not another group node, don't bother proceeding - if (([nodes count] == 1) && (![[nodes objectAtIndex:0] isGroup])) return; + if (([nodes count] == 1) && (![[nodes objectAtIndex:0] isGroup])) { + [nodes release]; + return; + } for (SPTreeNode *treeNode in nodes) { @@ -1166,6 +1169,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, [[node mutableChildNodes] setArray:nodes]; + [nodes release]; [groupNodes release]; } |