memory leak fix for CGGradient