Project: Eclipse_Platform_UI
Bug 57314 [Workbench] [Contexts] Dialog Shell retained in memory by EnabledSubmissions
Reported: 2004-04-02 16:39:27 | Status: resolved fixed

Using OptimizeIt, each time I open and close the Debug launch configurations dialog, 1 Shell is leaked, 20 EnabledSubmission are leaked. The shell is referenced as the active shell from the 20 EnabledSubmissions that remain in the enabledSubmissionsByContextId map of WorkbenchContextSupport. On the close of the launch configuration, removeEnabledSubmissions is not called. The submissions are added in checkWindowType(Shell) but since the shell is not registered, no dispose listener is added and then the submissions are not removed when the shell is disposed.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ws/WorkbenchContextSupport.java