tags:

views:

72

answers:

2

I'm creating an UIImage like this:

UIImage *img = UIGraphicsGetImageFromCurrentImageContext();

Am I responsible for releasing this?

+3  A: 

No.

Return Value

An autoreleased image object containing the contents of the current bitmap graphics context.

(doc link)

quixoto
+1  A: 

Read the documentation here. As it's written there, it returns an autoreleased object. You don't have to release it. If you want to keep it, you need to retain it somehow.

Yuji