I have a following code:
NSLog(@\"%d\", [chart retainCount]); self.chart = [[BNPieChart alloc] initWithFrame:self.view.frame]; NSLog(@\"%d\", [chart retainC
Due to self in the statement its retain count is 2 as property of the chart is declared as retain Remove self from the statement
retain
change
self.chart = [[BNPieChart alloc] initWithFrame:self.view.frame];
to
chart = [[BNPieChart alloc] initWithFrame:self.view.frame];