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

关于内存泄漏问题 #60

Open
xxjy opened this issue Dec 5, 2019 · 0 comments
Open

关于内存泄漏问题 #60

xxjy opened this issue Dec 5, 2019 · 0 comments

Comments

@xxjy
Copy link

xxjy commented Dec 5, 2019

1.WeakHashMap的key被回收了,需要下一次操作Map才会移除value,导致内存泄漏;
2.demo中Glide加载图片,使用了同一对象的url,Glide会引用url生成key,存在内存缓存里,url不能被回收导致内存泄漏;
个人觉得还是需要添加移除listener的接口,或者listener作为弱引用保存比较好

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

1 participant