rs/SDWebImage — Issue #53: Allocations keep increasing
Author: mohacs
Created: 2011-12-13 19:13:24+00:00
State: open

Hi, thank you for this great library.

i am having problem hopefully you could put a light on me to solve this. on the instruments there is no leak however memory allocation keep increasing while rolling tableview which i filled with images. when i do stack trace as i can see this part causing problem.

http://tinyurl.com/8yblsya

if ([delegate respondsToSelector:@selector(imageDownloader:didFinishWithImage:)])
{
UIImage *image = [[UIImage alloc] initWithData:imageData]; <-------------------- %99 ----------------

#ifdef ENABLE_SDWEBIMAGE_DECODER
[[SDWebImageDecoder sharedImageDecoder] decodeImage:image withDelegate:self userInfo:nil];
#else
[delegate performSelector:@selector(imageDownloader:didFinishWithImage:) withObject:self withObject:image];
#endif
[image release];
}
}

any help would be great.
many thanks.
-mohac.