Skip to content

Commit

Permalink
Fixed memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
elpablo committed Mar 18, 2012
1 parent b5311d8 commit a843cb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions YRDropdownView/YRDropdownView.m
Expand Up @@ -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;
}
Expand Down

0 comments on commit a843cb1

Please sign in to comment.