NSData dataWithContentsOfURL has memory leak problem.
Should use it like below.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// ** Your Operations **
NSData *data = [NSData dataWithContentsOfURL:someURL];
// ** Your Operation **
[pool release];
2010年8月9日
订阅:
博文评论 (Atom)
没有评论:
发表评论