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

内存泄露 CityPickerView.getInstance().setConfig(new CityConfig.Builder(this).build(); #96

Closed
LouisShark opened this issue Jan 17, 2018 · 6 comments
Labels

Comments

@LouisShark
Copy link

如题 单例的CityPickerView传进去一个activity的上下文会导致内存泄露

@LouisShark
Copy link
Author

@crazyandcoder

@crazyandcoder
Copy link
Owner

感谢使用并提出问题,把log贴出来看看呢!

@LouisShark
Copy link
Author

emmr 单例长生命周期的cityPicker引用短生命周期context(activity)肯定会泄露的吧

@LouisShark
Copy link
Author

image

@crazyandcoder
Copy link
Owner

@LouisShark 恩,非常感谢提出这个问题。虽然用LeakCanary检查了一下没有出现内存泄漏,但是理论上还是会出现的,下个版本会修复该问题。

@crazyandcoder
Copy link
Owner

@LouisShark 已修复该问题,请使用最新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants