Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-09-2008, 02:46 AM   #1 (permalink)
Marco
Registered Member
 
Marco's Avatar
 
Join Date: Apr 2008
Posts: 69
Default NSXMLParser *rssParser is causing a memory leak.

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.
__________________
Peace in Christ
Marco Napoli
http://www.ourlovingmother.org
Marco is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,718
Threads: 89,177
Posts: 380,483
Top Poster: BrianSlick (7,120)
Welcome to our newest member, korting
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.