Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368340 - Many ComposedAdapterFactory instantiations without disposal
Summary: Many ComposedAdapterFactory instantiations without disposal
Status: CLOSED FIXED
Alias: None
Product: ECP
Classification: Modeling
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.0.0   Edit
Assignee: Edgar Mueller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 08:53 EST by Nikolay Kasyanov CLA
Modified: 2013-05-17 09:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Kasyanov CLA 2012-01-11 08:53:48 EST
I've found that ComposedAdapterFactory instantiated in many places, but not disposed later. It may result in item provider leaks.
May be it would be nice to create one global instance of ComposedAdapterFactory, and use it everywhere.
Comment 1 Jonas Helming CLA 2012-01-13 05:44:14 EST
we removed a lot of those occurences, but thanks, we will look into
Comment 2 Nikolay Kasyanov CLA 2012-02-04 03:15:39 EST
Found another non-disposed instantiations — new ComposedAdapterFactory doesn't assigned to any variable:
org.eclipse.emf.ecp.common.MEClassLabelProvider:29
org.eclipse.emf.ecp.common.util.ModelElementTooltip:27
org.eclipse.emf.ecp.common.utilities.DefaultLabelProvider:26
org.eclipse.emf.ecp.common.utilities.ShortLabelProvider:28
org.eclipse.emf.ecp.editor.RelevanceWrappedLabelProvider:35
org.eclipse.emf.ecp.navigator.TreeContentProvider:116
org.eclipse.emf.ecp.navigator.wizards.ModelTreeContentProvider:43
Comment 3 Nikolay Kasyanov CLA 2012-02-04 03:17:19 EST
oops, more:
org.eclipse.emf.ecp.validation.providers.ValidationContentProvider:26
org.eclipse.emf.ecp.validation.providers.ValidationLabelProvider:30
Comment 4 Eugen Neufeld CLA 2013-05-17 09:53:37 EDT
Should be fixed now.