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

How about to use SoftReference or WeakReference when register to EventBus #54

Closed
wangqiang1588 opened this issue Jan 15, 2014 · 1 comment
Labels
wontfix This will not be worked on

Comments

@wangqiang1588
Copy link

If we forget to unregister the register class ,maybe cased the memory leak ,that can caused big trouble ,and sometimes it is hard to known when need to unregister , such as the Adapter ,so why not use the SoftReference or WeakReference when called register function ?

@greenrobot
Copy link
Owner

Won't change that, it won't be deterministic and it makes sense to have a subscriber only referenced from eventbus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants