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)
0 评论:
发表评论