I have a line of code:
CGFloat *components = CGColorGetComponents([color CGColor]);
and the analyzer says there is a leak. I tried for free (components), but the application crashes when I do this. Is there a leak here since I did not highlight anything. I know that CGColorGetComponents returns an array of 3 CGFloat, but when I try to free them, it crashes.
Any help is appreciated.
memory-management memory-leaks objective-c
Edward Ashak Jun 02 '11 at 19:26 2011-06-02 19:26
source share