aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-09-26 10:55:19 (EDT)
committerOleg Besedin2012-09-26 10:55:19 (EDT)
commite5657ae23fa549e6dd34b30723f9189317146c99 (patch)
tree3d204d660cbed79c657a90a578376556de60472a
parent8f25fbc4d8ff121d8cbe86c2e1e931d12998b1fb (diff)
downloadeclipse.platform.ui-e5657ae23fa549e6dd34b30723f9189317146c99.zip
eclipse.platform.ui-e5657ae23fa549e6dd34b30723f9189317146c99.tar.gz
eclipse.platform.ui-e5657ae23fa549e6dd34b30723f9189317146c99.tar.bz2
Bug 389250 - Lots of stuff leaked when closing and reopening views
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
index 0bb0485..4845c2c 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
@@ -634,6 +634,10 @@ public class StackRenderer extends LazyStackRenderer {
ToolBar vmTB = getViewMenuTB(ctf);
if (vmTB != null && !vmTB.isDisposed())
vmTB.dispose();
+ if (viewMenuImage != null && !viewMenuImage.isDisposed()) {
+ viewMenuImage.dispose();
+ viewMenuImage = null;
+ }
}
public void clearTR(CTabFolder ctf) {