Can someone explain why the following code makes my application bomb?
NSData *myImage = UIImagePNGRepresentation(imageView.image); : [myImage release];
If I comment out the "release" line, the application starts ... but calls the function containing this code several times and I get a crash - I think it was caused by a memory leak.
Even if I comment on EVERYTHING else in the function and just leave these two lines when the release is complete, the application crashes.
I am sure that this should be a beginner "you do not know how to properly clean your mess" ,-)
Greetings
Jamie
source share