Closed GoogleCodeExporter closed 9 years ago
I just tried this with the code snippet
NSString *str = @"<foo>bar</foo>";
NSError *err = nil;
GDataXMLElement* element = [[GDataXMLElement alloc] initWithXMLString:str
error:&err];
[element release];
and set a breakpoint in GDataXMLNode's dealloc method, and the release did lead
to dealloc being called on the element object. I'm not sure what object you are
seeing as leaking.
Original comment by grobb...@google.com
on 4 Jan 2011 at 9:14
OK, dealloc is being called but the value of shouldFreeXMLNode_ is NO, hence
the leak. Attached a capture of Leaks:
Original comment by dshimsh...@gmail.com
on 4 Jan 2011 at 10:09
Attachments:
Thanks for pointing this out. Fixed on top-of-trunk.
http://code.google.com/p/gdata-objectivec-client/source/detail?r=614
Original comment by gregrobbins
on 4 Jan 2011 at 11:44
Original issue reported on code.google.com by
dshimsh...@gmail.com
on 3 Jan 2011 at 4:25