Project: JDT
Bug 267090 leaking OpenTypeSelectionDialogs
Reported: 2009-03-04 14:45:31 | Status: verified fixed

I20090303-0800 We're leaking OpenTypeSelectionDialogs (about 100K each) because the constructor of FilteredTypesSelectionDialog adds a DisposeListener on the parent shell instead of the dialog's shell. The sad thing is that the DisposeListener is not even necessary... Backtrace: org.eclipse.jdt.internal.ui.dialogs.OpenTypeSelectionDialog this$0 of org.eclipse.jdt.internal.ui.dialogs.FilteredTypesSelectionDialog$4 eventListener of org.eclipse.swt.widgets.TypedListener [70] of org.eclipse.swt.widgets.Listener[256] listeners of org.eclipse.swt.widgets.EventTable eventTable of org.eclipse.swt.widgets.Shell shell of org.eclipse.ui.internal.WorkbenchWindow activeWorkbenchWindow of org.eclipse.ui.internal.Workbench [Stack Local]

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/FilteredTypesSelectionDialog.java