Hi all,
in my app
NSAutoreleasePool *pool = [[NSAutoReleasePool alloc]init];
cell.image = [UIImage initWithData:[NSData initWithContentsOfUrl:[NSURL URLWithString"http://images/image.jpg"]]];
[pool release];
when i see leaks in instruments and after tracing stack it will come and stop to this line:
cell.image = [UIImage initWithData:[NSData initWithContentsOfUrl:[NSURL URLWithString"http://images/image.jpg"]]];
NSAutoreleasePool *pool = [[NSAutoReleasePool alloc]init];
i didnt had this line in my code earlier ,after geeting the leaks i added this line
but still leaks are there in my app.
Not only here i am parsing xml files in my app,where ever i use NSURL there are leaks in my code.
NSXMLParser *parser = [[NSXMLParser alloc] initWithURL:[NSURL initWithString:URL]];
in my app
NSAutoreleasePool *pool = [[NSAutoReleasePool alloc]init];
cell.image = [UIImage initWithData:[NSData initWithContentsOfUrl:[NSURL URLWithString"http://images/image.jpg"]]];
[pool release];
when i see leaks in instruments and after tracing stack it will come and stop to this line:
cell.image = [UIImage initWithData:[NSData initWithContentsOfUrl:[NSURL URLWithString"http://images/image.jpg"]]];
NSAutoreleasePool *pool = [[NSAutoReleasePool alloc]init];
i didnt had this line in my code earlier ,after geeting the leaks i added this line
but still leaks are there in my app.
Not only here i am parsing xml files in my app,where ever i use NSURL there are leaks in my code.
NSXMLParser *parser = [[NSXMLParser alloc] initWithURL:[NSURL initWithString:URL]];