Skip to content

Commit

Permalink
Fixed CGGradientRef leak in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Mar 17, 2016
1 parent 5b3e57b commit a9c3c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChartsDemo/Classes/Demos/LineChart1ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ - (void)setDataCount:(int)count range:(double)range
set1.fill = [ChartFill fillWithLinearGradient:gradient angle:90.f];
set1.drawFilledEnabled = YES;

CGGradientRelease(gradient);

NSMutableArray *dataSets = [[NSMutableArray alloc] init];
[dataSets addObject:set1];

Expand Down

0 comments on commit a9c3c38

Please sign in to comment.