KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code that leaks. Instruments says that it is the rssParser object that is leaking. I "refresh" the XML feed and it runs the block and it leaks.... file.h @interface TestAppDelegate : NSObject <UIApplicationDelegate> { NSXMLParser *rssParser; } file.m NSData *data = [ NSURLConnection sendSynchronousRequest:request returningResponse: nil error: nil ]; rssParser = [[NSXMLParser alloc] initWithData:data]; [rssParser setDelegate:self]; [rssParser setShouldProcessNamespaces:NO]; [rssParser setShouldReportNamespacePrefixes:NO]; [rssParser setShouldResolveExternalEntities:NO]; [rssParser parse]; [rssParser release]; Image of leak.... alt text http://www.shipfinder.co.uk/images/memoryleak.png
Tags (comma-separated)
Save Edits
Cancel