I just built analyzed the app I am working on, and in one section of the code it says "Potential leak of an object allocated on line 79" which is:
Code:
[shows addObject:[item copy]];
item is a NSMutableDictionary and shows is a NSMutableArray. Both of these variables I release in dealloc at the end so I am confused as why there would be a leak. Before line 79 i have:
Code:
if ([elementName isEqualToString:@"item"]) {
// save values to an item, then store that item
[item setObject:currentTitle forKey:@"title"];
[item setObject:currentDate forKey:@"date"];
[item setObject:currentTime forKey:@"time"];
[item setObject:currentPrice forKey:@"price"];
[item setObject:currentAddress forKey:@"address"];
[item setObject:currentLatitude forKey:@"lat"];
[item setObject:currentLongitude forKey:@"lon"];
Any help would be very appreciated!