Permalink
Browse files

* Fixed two memory leaks

  • Loading branch information...
1 parent bfcb031 commit 743b73a9ca9d0c210065eda9e61166179fd30c3a @mattball committed Jun 26, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 MBCoverFlowView.m
View
2 MBCoverFlowView.m
@@ -416,6 +416,7 @@ - (void)setContent:(NSArray *)newContents
}
[self _refreshLayer:layer];
}
+ [itemsToAdd release];
// Remove any items which are no longer present
NSMutableArray *itemsToRemove = [oldContent mutableCopy];
@@ -427,6 +428,7 @@ - (void)setContent:(NSArray *)newContents
}
[layer removeFromSuperlayer];
}
+ [itemsToRemove release];
[oldContent release];

0 comments on commit 743b73a

Please sign in to comment.