leak at status parser method in libxml
I had a problem with the LibXMLParser when I开发者_JAVA技巧 ran it in the instruments. the following is my code that I used.
- (id)statusParser
{
return [[[self class] alloc] init];
}
The memory is leaking at return method.
Did you try autorelease
?
- (id)statusParser
{
return [[[[self class] alloc] init] autorelease];
}
精彩评论