this is my code it does not releases memory it reaches to 60 mb and application kills
for (int i=0; i<[modelList count] ;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];
}