Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kullmann2016-11-22 08:29:26 -0500
committerPeter Kullmann2016-11-25 05:15:57 -0500
commitc1be274d1287c8e4a1cbb4eda335fe1f825c4146 (patch)
treedd6214b8f8e464a6036b17d46df264c0d5c43d73
parent81080e4d6934d557c1bfd289bcc739469a5a027e (diff)
downloadorg.eclipse.rap.incubator.e4-c1be274d1287c8e4a1cbb4eda335fe1f825c4146.tar.gz
org.eclipse.rap.incubator.e4-c1be274d1287c8e4a1cbb4eda335fe1f825c4146.tar.xz
org.eclipse.rap.incubator.e4-c1be274d1287c8e4a1cbb4eda335fe1f825c4146.zip
Bug 494141 - Fixed memory leak in rap extended object suppliers
Change-Id: I77a78ad38938b6cebeddf1572f1f16ccc8ff6884 Signed-off-by: Peter Kullmann <p.kullmann@arenae.ch>
-rw-r--r--bundles/org.eclipse.rap.e4/src/org/eclipse/rap/e4/internal/RAPAbstractObjectSupplierDispatcher.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.rap.e4/src/org/eclipse/rap/e4/internal/RAPAbstractObjectSupplierDispatcher.java b/bundles/org.eclipse.rap.e4/src/org/eclipse/rap/e4/internal/RAPAbstractObjectSupplierDispatcher.java
index db1e10c..32f19ee 100644
--- a/bundles/org.eclipse.rap.e4/src/org/eclipse/rap/e4/internal/RAPAbstractObjectSupplierDispatcher.java
+++ b/bundles/org.eclipse.rap.e4/src/org/eclipse/rap/e4/internal/RAPAbstractObjectSupplierDispatcher.java
@@ -26,7 +26,10 @@ public abstract class RAPAbstractObjectSupplierDispatcher<S extends ExtendedObje
@Override
public void disposed(IEclipseContext context) {
- rootContextMap.remove(context);
+ IEclipseContext rootContext = rootContextMap.remove(context);
+ if (rootContext != null) {
+ supplierCache.remove(rootContext);
+ }
}
};

Back to the top