views:

9

answers:

1

Hi all,

I had a problem with the LibXMLParser when I 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. Please help me it is very urgent.

Thanks in advance, Sekhar Bethalam.

A: 

Did you try autorelease?

 - (id)statusParser
{
    return [[[[self class] alloc] init] autorelease];
}
NR4TR