Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Gabel2016-07-06 09:55:28 +0000
committerGerrit Code Review @ Eclipse.org2016-07-07 08:21:37 +0000
commit7e3ce3d940caff01075605e1a58f83764408a7f4 (patch)
treec90139bf28b336129c7fdc08231e94ced4463500 /plugins/infra/properties
parent312d483433e09ba9242f261a519a8c052485a7d8 (diff)
downloadorg.eclipse.papyrus-7e3ce3d940caff01075605e1a58f83764408a7f4.tar.gz
org.eclipse.papyrus-7e3ce3d940caff01075605e1a58f83764408a7f4.tar.xz
org.eclipse.papyrus-7e3ce3d940caff01075605e1a58f83764408a7f4.zip
Bug 497372: Memory leak in case of multi selection
Change-Id: I0555fd0df9c0ee10bbf08802ca7b21f345d54621 Signed-off-by: Sebastien Gabel <sebastien.gabel@esterel-technologies.com>
Diffstat (limited to 'plugins/infra/properties')
-rw-r--r--plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/modelelement/CompositeModelElement.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/modelelement/CompositeModelElement.java b/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/modelelement/CompositeModelElement.java
index 491043d012d..f68d17d16a7 100644
--- a/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/modelelement/CompositeModelElement.java
+++ b/plugins/infra/properties/org.eclipse.papyrus.infra.properties.ui/src/org/eclipse/papyrus/infra/properties/ui/modelelement/CompositeModelElement.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
+ * Copyright (c) 2010, 2016 CEA LIST, Esterel Technologies SAS and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -9,6 +9,7 @@
* Contributors:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
* Christian W. Damus (CEA) - bug 417409
+ * Alain Le Guennec (Esterel Technologies SAS) - bug 497372
*
*****************************************************************************/
package org.eclipse.papyrus.infra.properties.ui.modelelement;
@@ -48,6 +49,18 @@ public class CompositeModelElement extends AbstractModelElement {
this.subModelElementFactory = subModelElementFactory;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void dispose() {
+ for (ModelElement element : elements) {
+ element.dispose();
+ }
+ super.dispose();
+ elements.clear();
+ }
+
@Override
public IObservable doGetObservable(String propertyPath) {

Back to the top