daimajia / AndroidViewHover

An elegant way to show your menu or messages.
3.21k stars 722 forks source link

Memory leak with mBlurImage #22

Open techtunde opened 9 years ago

techtunde commented 9 years ago

When enableBlurBackground() is set to true, if you monitor the memory of the application, you can see that memory goes up each time you do hover.show(), but doesn't go down when you do hover.hide(). If you look at the code for onAnimationEnd() for mGlobalDisappearAnimators, you see that the image within mBlurImage is not freed. I believe this is what causes the memory leak.

9c-x commented 3 years ago

/**