Skip to content

Commit

Permalink
Fix leak in SSHUDWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Nov 16, 2012
1 parent 3ca88d7 commit 6260a59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SSToolkit/SSHUDWindow.m
Expand Up @@ -56,6 +56,7 @@ - (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();
CGGradientRef gradient = SSCreateGradientWithColors(@[[UIColor colorWithWhite:0.0f alpha:0.1f], [UIColor colorWithWhite:0.0f alpha:0.5f]]);
CGContextDrawRadialGradient(context, gradient, self.center, 0.0f, self.center, fmaxf(self.bounds.size.width, self.bounds.size.height) / 2.0f, kCGGradientDrawsAfterEndLocation);
CGGradientRelease(gradient);
}

@end

0 comments on commit 6260a59

Please sign in to comment.