Using Instruments, I keep on getting pointed to a memory leak with a UIImage.
I think I m assigning and releasing the memory correctly. The leaked object in instruments is described as NSConcreteData
分配和释放UIImage的以下正确方式吗?
UIImage* flagimg = [UIImage imageWithData: [NSData dataWithContentsOfURL:url2]];
[flagimg release];
flagimg =nil;