aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2011-05-06 05:22:21 (EDT)
committerDani Megert2011-10-06 04:31:19 (EDT)
commitdf03199b653d305397b221b34d13892698dfb159 (patch)
treea04d0c0e68aa349927ed38678b99b9228134583c
parent2295bf6c7372f559353bb09ca40750d8d93f3448 (diff)
downloadeclipse.platform.ui-df03199b653d305397b221b34d13892698dfb159.zip
eclipse.platform.ui-df03199b653d305397b221b34d13892698dfb159.tar.gz
eclipse.platform.ui-df03199b653d305397b221b34d13892698dfb159.tar.bz2
Bug 344883: EditorSelectionDialog#promptForExternalEditor() leaks an image
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/EditorSelectionDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/EditorSelectionDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/EditorSelectionDialog.java
index eb59149..a43ca61 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/EditorSelectionDialog.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/EditorSelectionDialog.java
@@ -389,7 +389,7 @@ public final class EditorSelectionDialog extends Dialog {
TableItem ti = new TableItem(editorTable, SWT.NULL);
ti.setData(editor);
ti.setText(editor.getLabel());
- Image image = editor.getImageDescriptor().createImage();
+ Image image = (Image) resourceManager.get(editor.getImageDescriptor());
ti.setImage(image);
// need to pass an array to setSelection -- 1FSKYVO: SWT:ALL -