I had two rare customer report about one of my apps that after long time of running, the app eats up about 2GB memory. I'm quite puzzled in that I do not observe this problem for the past 2 years and I have only 2 customer reports on this problem.
The only place that I can think of that eats up memory gradually is one of the method of NSURLConnectionDataDelegate:
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
[_data appendData:data];
}The data then is stored in an NSMutableDictionary which is then added to a list. After verything is done, the dictionary is removed off list. That should work without problem and I cannot think of any problem that can cause memory leaks.
Any suggestions will be appreciated.