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

ActivityLeakFixer中drawable应该尽快清除native层引用的bitmap对象 #666

Closed
wants to merge 1 commit into from

Conversation

TestPlanB
Copy link

ActivityLeakFixer作为内存泄漏兜底,应该清除drawable的同时也应该清除bitmap,因为bitmap在native层还是内存还是有一定的消耗,等待gc执行不太符合内存泄漏急需释放内存的场景,所以应该调用bitmap的recycle方法通过bitmap机制去清除native层引用。

@gryamy gryamy requested a review from Yves0 November 12, 2021 08:43
@Yves0
Copy link
Collaborator

Yves0 commented Nov 15, 2021

在这里回收 Bitmap 不安全,无法保证 Bitmap 没有在其他地方用到

@Yves0 Yves0 closed this Nov 15, 2021
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.

2 participants