Skip to content

add the ability of registerWeak, which could help reduce memory leak#635

Open
ice871117 wants to merge 1 commit intogreenrobot:masterfrom
ice871117:master
Open

add the ability of registerWeak, which could help reduce memory leak#635
ice871117 wants to merge 1 commit intogreenrobot:masterfrom
ice871117:master

Conversation

@ice871117
Copy link

we have been using this registerWeak function for a while and it runs steady, also reduce the chance to cause memory leak on android. sometimes it is really hard to find a proper place to call unregister.
Empty reference will be removed when new registration happens

@GregoryConrad
Copy link

@greenrobot-team Any update on this? This would be an amazing feature to have and the idea was brought up all the way back in January 2014: #57

@greenrobot-team
Copy link
Collaborator

No update. But as a general hint, you should not expect such fundamental (read potentially breaking) changes making it into the library.

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.

4 participants

Comments