71squared/TBXML — Issue #2: tbxml 1.4 memory leak, when profile the code.
Author: Z0287yyy
Created: 2012-02-29 04:06:21+00:00
State: open

Hello,

I just use the tbxml 1.4 for our iOS project, and thanks for your lib.

But always, I meet a memory leak issue point to the "textForElement" method.

+ (NSString*) textForElement:(TBXMLElement*)aXMLElement {
if (nil == aXMLElement->text) return @"";
return [NSString stringWithCString:&aXMLElement->text[0] encoding:NSUTF8StringEncoding];
}

But I'm not sure it's the issue of the code or just the issue of the sdk or profile tool.

Please reply me, if you have the time.

Thanks,
A iOS developer Chris