Say I have this piece of code:
CGColorSpaceRef colorSpaceRGB = CGColorSpaceCreateDeviceRGB(); CGContextSetStrokeColorSpace(context, colorSpaceRGB); CGContextSetFillColorSpace(context, colorSpaceRGB);
After that I draw a picture. When I'm done, do I need to manually free colorSpaceRGB
if I use ARC? Like this:
CGColorSpaceRelease(colorSpaceRGB);
Or do I need to do anything?
Thanks:)
source share