Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrogers2010-10-14 17:18:58 +0000
committercrogers2010-10-14 17:18:58 +0000
commitaeb997ca76640f7f3b1e6e66d68effc6d33aa612 (patch)
tree685b3c72bb87478e446a252c920e53c61f989355
parentec7404d5930cea947c74c18bf278b5377f0a43be (diff)
downloadwebtools.jsf-aeb997ca76640f7f3b1e6e66d68effc6d33aa612.tar.gz
webtools.jsf-aeb997ca76640f7f3b1e6e66d68effc6d33aa612.tar.xz
webtools.jsf-aeb997ca76640f7f3b1e6e66d68effc6d33aa612.zip
[Bug 327733] - Memory leak in MetaDataModelManager. Override destroy() to clean up resources and memory references when the aasociated project is deleted.
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataModelManager.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataModelManager.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataModelManager.java
index 674c8778d..64a400970 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataModelManager.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataModelManager.java
@@ -155,11 +155,18 @@ public final class MetaDataModelManager extends AbstractMetaDataModelManager {
models.put(model);
}
+ @Override
public void dispose() {
super.dispose();
models.dispose();
}
-
+
+ @Override
+ public void destroy() {
+ // no persistent data to cleanup. just call dispose
+ dispose();
+ }
+
/**
* Map of models keyed by DOMAIN_ID:MODEL_ID from the context. Project is not part of key.
*

Back to the top