Project: SWT
Bug 35773 Disposing a toolbar does not dispose the child controls properly
Reported: 2003-03-27 14:04:58 | Status: resolved fixed

GEF and others place drop-down combo controls on the Toolbar via a custom ContributionItem. At some point in our code we ask the Combo if it is disposed, and it says no. Then we try to do something, and it throws widget is disposed exception. The Toolbar is getting disposed, but is not disposing its child, the Combo.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java