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 #9

Closed
liuyong opened this issue Jul 19, 2014 · 2 comments
Closed

Memory Leak #9

liuyong opened this issue Jul 19, 2014 · 2 comments

Comments

@liuyong
Copy link

liuyong commented Jul 19, 2014

Grateful for such a great control, I am in the process of using each Liked or Nope will have a memory leak. May I ask how to deal with memory leaks?
Content from GOOGLE translation problem.

@modocache
Copy link
Owner

Yeah, there definitely is a memory leak here. Received this email from (I think?) @stevem21m:

I've been using your sample code MDCSwipeToChoose.

In the sample ChoosePersonView, I'm setting the image view image with AFNetworking setImageWithURL. Anyhow, the Virtual memory for CG raster data grows and grows and eventually crashes. Any thoughts on how to deallocate the images from being allocated to virtual memory. I've been banging my head on this all day and can't find any solution online. At first I thought it might the the way AFNetworking caches the images, but it's not, it's like all the images are being held hostage by memory.

Any tips would be appreciated.

@modocache
Copy link
Owner

Thanks for the heads up, @liuyong! 😁

I just profiled the sample app. I'm not sure I see any leaks. Are you sure your problem wasn't fixed in pull request #4? If you still have a problem on the latest version (0.2.1), please open another issue.

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