I have noticed 2 small leaks related to CPTColor and CPTColorSpace when testing with the leaks instrument on the device. I only use the CPTColor class methods and do not retain any of the CPTColor objects returned. Is this a leak in the Core Plot framework?
I have noticed 2 small leaks related to CPTColor and CPTColorSpace when testing with
Share
CPTColor creates static instances of the predefined color objects (blackColor, redColor, greenColor, etc.) for performance. Similarly,
+[CPTColorSpace genericRGBSpace]creates a static color space instance. These static objects are never released and therefore get reported as leaks.