Wednesday 15 September 2010

iphone - Method returns a Core Foundation object a +1 retain -


Can anyone tell me what's the problem here?

screenshot

However, you can be enabled ARC, which only covers cocoa / purpose-c Objects and you are still clearly created For any of the items, the collection must be clearly released.

In your code, you " createCGIImage: " without a balanced release

looks like a release :

  CGImageRelease (myImageRef)   

So, to do this right, do something like this:

  CGImjrf MyImageRef = [reference to create CGI image: output item from output: output image.example]; UIImage * imageTemp = [UIImage imageWithCGImage: myImageRef]; CGImageRelease (myImageRef);    

No comments:

Post a Comment