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

Static reference nextDisplayable in Alert class hinders GC #13

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 4 comments
Closed

Comments

@GoogleCodeExporter
Copy link

First of all, thank you for MicroEmulator .. living alone with WTK would be
a PITA.

Now to the issue, the title says it already. The static reference is not
really a leak, as this reference gets refreshed when a new Alert is
displayed so that finally the previous object referenced by
Alert.nextDisplayable may get garbage collected. However this reference
makes profiling for real memory leaks complicated. Things would be easier
if this reference would be an instance field.

Thanks and cheers,
Oben

BTW.. I'm using MicroEmu 2.0.3


Original issue reported on code.google.com by bar...@gmail.com on 18 Nov 2009 at 11:43

@GoogleCodeExporter
Copy link
Author

An alternative to making it an instance field would be to simply set it
null once it has been used.

Original comment by bar...@gmail.com on 18 Nov 2009 at 11:44

@GoogleCodeExporter
Copy link
Author

Fixed in trunk (future 3.0 version)

Original comment by bar...@gmail.com on 8 Jan 2010 at 10:43

  • Changed state: Fixed
  • Added labels: Milestone-3.0

@GoogleCodeExporter
Copy link
Author

Great, thanks!

Original comment by obensonne@googlemail.com on 8 Jan 2010 at 10:17

@GoogleCodeExporter
Copy link
Author

Original comment by bar...@gmail.com on 9 Jan 2010 at 8:59

  • Changed state: Verified

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

No branches or pull requests

1 participant