Re: NSXMLParser frees itself on error?
Re: NSXMLParser frees itself on error?
- Subject: Re: NSXMLParser frees itself on error?
- From: Jeff Johnson <email@hidden>
- Date: Thu, 7 May 2009 02:17:12 -0500
On May 7, 2009, at 12:27 AM, Marcel Weiher wrote:
In fact, NSXMLParser very likely *should* maintain autorelease
pools, because its clients can't safely do this and there is quite a
potential for growing the heap during XML parsing.
"One technique for dealing with these generated objects is for the
delegate to create a local autorelease pools at the beginning of each
implemented delegation method and release the autorelease pool just
before returning."
<http://developer.apple.com/documentation/Cocoa/Conceptual/XMLParsing/Articles/UsingParser.html
>
So it's pretty clear that NSXMLParser is not itself wrapping the
delegate calls in an autorelease pool. And for good reason. :-)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden