Project: JDT
Bug 222355 [refactoring] Image leak in CreateTextFilePreviewer.setText()
Reported: 2008-03-12 03:40:18 | Status: resolved fixed

3.4M5 I see 14 instances of the same image with the following allocation stacktrace: java.lang.Error at org.eclipse.swt.graphics.Device.new_Object(Device.java:804) at org.eclipse.swt.graphics.Resource.init(Resource.java:84) at org.eclipse.swt.graphics.Image.<init>(Image.java:485) at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:289) at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:227) at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:205) at org.eclipse.jdt.internal.ui.refactoring.CreateTextFileChangePreviewViewer$CreateTextFilePreviewer.setText(CreateTextFileChangePreviewViewer.java:72) at org.eclipse.jdt.internal.ui.refactoring.CreateTextFileChangePreviewViewer.setInput(CreateTextFileChangePreviewViewer.java:138) at org.eclipse.ltk.internal.ui.refactoring.AbstractChangeNode.feedInput(AbstractChangeNode.java:101) at org.eclipse.ltk.internal.ui.refactoring.PreviewWizardPage.showPreview(PreviewWizardPage.java:600) at org.eclipse.ltk.internal.ui.refactoring.PreviewWizardPage.access$6(PreviewWizardPage.java:585) at org.eclipse.ltk.internal.ui.refactoring.PreviewWizardPage$7.selectionChanged(PreviewWizardPage.java:576)

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/CreateTextFileChangePreviewViewer.java