I have been trying to figure out why the NSXMLParser *rssParser is causing a memory leak. I have commented out all of my code and I believe this line is causing it. I am trying to parse a webservice using NSXMLParser, maybe I need to use something else?
Code:
- (void)parseXMLFileAtURL:(NSString *)URL
{
NSMutableArray * messageCountArray = [[NSMutableArray alloc] init];
NSURL *xmlURL = [NSURL URLWithString:URL];
NSXMLParser *rssParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL]; // causes leak, I believe
[messageCountArray release];
[xmlURL release];
[rssParser release];
}
I have also used Instruments with Apple's SeismicXML example and it also shows a leak.
Any ideas and help are appreciated.