это мой код, он не освобождает память, он достигает 60 мб, а приложение убивает
for (int i = 0; i ‹[количество списков моделей]; i ++) {
url=@"http://192.168.0.101/images/projectimages/";
url=[url stringByAppendingString:[modelList objectAtIndex:i]];
url=[url stringByAppendingString:@".jpg"];
[[NSURLCache sharedURLCache] setMemoryCapacity:0];
[[NSURLCache sharedURLCache] setDiskCapacity:0];
NSData *imageData=[[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:url]];
destinationPath=[documentsDirectory stringByAppendingString:@"/modelimages"];
destinationPath=[destinationPath stringByAppendingPathComponent:[modelList objectAtIndex:i]];
destinationPath=[destinationPath stringByAppendingString:@".jpg"];
[imageData writeToFile:destinationPath atomically:YES];
[imageData release];
//imageData=nil;
//[myurl release];
//[imageData release];
value=value+divideValue;
printf("%f\n",value);
[NSThread detachNewThreadSelector:@selector(updateProgressBar)toTarget:self withObject:nil];
}