Skip to content
Browse files

Fixed memory leak.

  • Loading branch information...
1 parent b5311d8 commit a843cb11532b1c0dc2cd682755a1f5488e1820d0 @elpablo committed Mar 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 YRDropdownView/YRDropdownView.m
View
1 YRDropdownView/YRDropdownView.m
@@ -516,6 +516,7 @@ - (CGGradientRef)backgroundGradient {
CGFloat colorStops[4] = {0.0, 0.85, 0.95, 1.0};
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
_backgroundGradient = CGGradientCreateWithColorComponents(colorSpace, colors, colorStops, 4);
+ CGColorSpaceRelease(colorSpace);
}
return _backgroundGradient;
}

0 comments on commit a843cb1

Please sign in to comment.
Something went wrong with that request. Please try again.