diff options
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java index e3a744af44..a44bb7ec21 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java @@ -116,6 +116,17 @@ public int indexOf (ExpandItem item) { return -1; } +void releaseChildren (boolean destroy) { + ExpandItem [] items = getItems (); + for (int i=0; i<items.length; i++) { + ExpandItem item = items [i]; + if (item != null && !item.isDisposed ()) { + item.release (false); + } + } + super.releaseChildren (destroy); +} + void relayout () { ExpandItem [] items = getItems (); int yScroll = 0; |