bcaccinolo/XML-to-NSDictionary — Issue #4: NSXMLParser leak
Author: Red-Mak
Created: 2012-02-03 08:40:44+00:00
State: open

in XMLReader the parser is allocated but never released.
just add this ( tested with instruments )

- (void)parserDidEndDocument:(NSXMLParser *)parser
{
NSLog(@"parserDidEndDocument");
[parser release];
}

- (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError
{
// Set the error pointer to the parser's error object
*errorPointer = parseError;
[parser release];
}