Greetings. I'm almost finished with my first iPhone app, but have run into trouble with XML parsing. Instruments reports that the instantiation line sparks a memory leak in my parseXML method, but I can't figure out why. Here's the (entire) code for the method. Any guidance is greatly appreciated.
-(void)parseXML:(NSString *)xHC {
BOOL success;
NSURL *xmlURL = [[NSURL alloc] initWithString:hcXMLSource];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL];
[xmlParser setDelegate:self];
[xmlParser setShouldResolveExternalEntities:NO];
success = [xmlParser parse];
[xmlParser release];
[xmlURL release];
}