Project: Eclipse_Platform_UI
Bug 27416 [ActionSets] API method dispose not called
Reported: 2002-11-29 12:30:55 | Status: resolved fixed

Build 20021127 IWorkbenchWindowActionDelegate.dispose says dispose can be used to clean up. It seems that the framework is not calling this method at all: I closed a workbench window and the breakpoint never gets hit. This can lead to memory leaks for clients which count on dispose being called. Especially if the delegate is referenced from somehwere then the whole closed wokrbench window will stay in memory (the action has a link to it). Note: dispose on WWinPluginAction doesn't seem to be called as well.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPluginAction.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java