Permalink
Browse files

Removed over-release of gradient due to merges (whoops).

  • Loading branch information...
1 parent a0a2b33 commit 88a760ce3828be8ed1714f93d57206d20170798d @domesticcatsoftware domesticcatsoftware committed Dec 12, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 DCRoundSwitch/DCRoundSwitchKnobLayer.m
@@ -56,7 +56,6 @@ CGGradientRef CreateGradientRefWithColors(CGColorSpaceRef colorSpace, CGColorRef
CGColorRef colors[] = {startColor, endColor};
CFArrayRef colorsArray = CFArrayCreate(NULL, (const void**)colors, sizeof(colors) / sizeof(CGColorRef), &kCFTypeArrayCallBacks);
CGGradientRef gradient = CGGradientCreateWithColors(colorSpace, colorsArray, colorStops);
- [NSMakeCollectable(gradient) autorelease];
CFRelease(colorsArray);
return gradient;
}

0 comments on commit 88a760c

Please sign in to comment.