NSMutableArray addObject in for loop - memory leak
问题 i'm putting strings (which are filenames of files in a certain directory) into an NSMutableArray with a for loop: h-file: #import <Three20/Three20.h> @interface AlbumController : TTThumbsViewController { NSMutableArray *images; } @property (nonatomic, retain) NSMutableArray *images; @end m-file: #import "AlbumController.h" #import "PhotoSource.h" #import "Photo.h" @implementation AlbumController @synthesize images; -(void)createPhotos { NSString *bundleRoot = [[NSBundle mainBundle] bundlePath