Project: JDT
Bug 210633 [JUnit] JUnit view leaks SWT image handle
Reported: 2007-11-22 05:06:34 | Status: verified fixed

If you open and close the JUnit view repeatedly while watching with the Windows Task Manager you can see an increasing number of GDI objects. With the Sleak view we detected the image fSuiteOkIcon is responsible for the leak. I have prepared a patch (to follow...)

Files changed in fix:
org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/JUnitCorePlugin.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/CounterPanel.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/FailureTableDisplay.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java