Suppose I’m using CGColorSpaceRef. I’m wondering if there is a difference between releasing the CGColorSpaceRef by calling CFRelease versus using CGColorSpaceRelease?
i.e., a difference between this:
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
// do stuff
CFRelease(colorspace);
versus doing:
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
// do stuff
CGColorSpaceRelease(colorspace);
From the CGColorSpace Reference: