i have in my parser :
+(NSArray *)parseMethode:(NSData *)xmlData {
...
return [myNSArray autorelease];
}
and in an other controller i have done this :
@synthesize anOtherNSMutableArray;
- (void)requestFinished:(ASIHTTPRequest *)request
{
NSData *responseData = [self.currentRequest responseData];
self.anOtherNSArray = [MyClassParsers parseMethode:reponseData];
...
}
and when i lunch instruments it detect me a leak in the line :
self.anOtherNSArray = [MyClassParsers parseMethode:reponseData];
is there a leak in my code ??
thanks for your answers
Try with below