aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSnjezana Peco2012-10-18 14:38:02 (EDT)
committerOleg Besedin2012-10-18 14:38:02 (EDT)
commite9b68830bd95c74a0821e544efca4d943ec6b79e (patch)
tree46c7df12f460d842356124763431be5b78f78800
parentabf300588cdfe261ef1784eb855b6e1e4f3803bf (diff)
downloadeclipse.platform.ui-e9b68830bd95c74a0821e544efca4d943ec6b79e.zip
eclipse.platform.ui-e9b68830bd95c74a0821e544efca4d943ec6b79e.tar.gz
eclipse.platform.ui-e9b68830bd95c74a0821e544efca4d943ec6b79e.tar.bz2
Bug 389257 - Objects leaked when opening and closing an editorv20121018-183802
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
index 8ba6ebf..f1d953a 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
@@ -556,6 +556,9 @@ public class ToolBarManagerRenderer extends SWTPartRenderer {
if (intermediate == null || intermediate.isDisposed()) {
return null;
}
+ if (intermediate instanceof ToolBar) {
+ return intermediate;
+ }
ToolBar toolbar = findToolbar(intermediate);
if (toolbar == null) {
toolbar = createToolbar(childElement.getParent(), intermediate);