Skip to content

修复停止扫描后内存泄漏#472

Open
chenzenghui2013 wants to merge 1 commit intoJasonchenlijian:masterfrom
chenzenghui2013:master
Open

修复停止扫描后内存泄漏#472
chenzenghui2013 wants to merge 1 commit intoJasonchenlijian:masterfrom
chenzenghui2013:master

Conversation

@chenzenghui2013
Copy link
Copy Markdown

如果外部扫描通过匿名类设置监听后,停止扫描后对象无法自动释放,
因为匿名类默认持有外部activity对象,然后单例持有匿名类形成循环引用,导致activity退出后无法gc

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