Memory leak with EditingDomainActionBarContributor? [message #1741191] |
Tue, 23 August 2016 11:34  |
Eclipse User |
|
|
|
Hello,
I have an issue with one of my custom EMF editor. When I close the editor, it is not fully garbage collected.
My issue is that the editor itself is scattered into multiple pieces so I can't really remove all the references pointed by the editor itself, so I wanted to free the editor itself (which sound logic to me).
However, it is not freed, and when I take a look with memory analyzer and look at the path to the root, it is kept by its action bar contributor (EditingDomainActionBarContributor) via the attribute "activeEditor" (see screenshot).
When I dispose the editor, I call setActiveEditor(null), but it doesn't reset the attribute.
So my question: is it a normal behavior from EditingDomainActionBarContributor? Or am I missing something so obvious?
Thanks.
Michael.
|
|
|
|
|
|
|
Re: Memory leak with EditingDomainActionBarContributor? [message #1741438 is a reply to message #1741270] |
Thu, 25 August 2016 02:53  |
Eclipse User |
|
|
|
The ActionBarContributor is shared across editors and one would expect it would be disposed after the last editor that needs it is closed. But as you say, it still seems wrong that it should hold onto an old active editor until there is a non-null new one set. Please do open a Bugzilla with a reference to this thread.
|
|
|
Powered by
FUDForum. Page generated in 0.07711 seconds