Skip to content

Resolved memory leak problem in CustomGalleryActivity #21

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

han0ah
Copy link

@han0ah han0ah commented Jan 21, 2015

I found that memory leak occurs when I repeat action that I move to CustomGalleryActivity and go back to MainActivity by using Eclipse DDMS View's Heap monitoring.
The reason was that images(drawables), which are shown in the screen at the moment that back-button pressed,are not properly collected by GC
So I added the codes that close the connection between views and drawables so that drawables are collected well by GC.

Thank you.

…View . Call this method when OnDestory is called
@han0ah han0ah changed the title Resolve memory leak problem in CustomGalleryActivity Resolved memory leak problem in CustomGalleryActivity Jan 21, 2015
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

Successfully merging this pull request may close these issues.

1 participant