Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak in BarChartView Data #2416

Closed
Atchu opened this issue May 8, 2017 · 4 comments
Closed

Memory Leak in BarChartView Data #2416

Atchu opened this issue May 8, 2017 · 4 comments

Comments

@Atchu
Copy link

Atchu commented May 8, 2017

When I checked Memory Leaks in Instruments always showed BarchartView.data=data as memory leak

BarChartData *data1=nil;
   if(dataSets && dataSets.count>0)
   {
   data1 = [[BarChartData alloc] initWithDataSets:dataSets];
   [data1 setValueFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:10.f]];
   }
   self.barChartView.data = data1; //memory Leak

any suggestions to solve the memory leak here

@liuxuan30
Copy link
Member

liuxuan30 commented May 8, 2017

Have you checked the retain count at last?

Last year we met some cases saying memory leak, but I asked some apple engineers, they said it's instruments bug. This code has not changed a long time, I'm not sure if it's really a leak.

Please post screenshots so we can reproduce or post the instruments file

@Atchu
Copy link
Author

Atchu commented May 8, 2017

Thanks for Reply I just Attaching screen shot below
screen shot 2017-05-08 at 9 27 00 am

@liuxuan30
Copy link
Member

liuxuan30 commented May 9, 2017

No, I want instruments leak log, not the code. Actually, I can't find instruments complains what you post on my side.

@liuxuan30
Copy link
Member

closed, dup to #2425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants