+2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * lwlib-Xm.c (update_one_menu_entry): Deallocate widget_list.
+ (destroy_all_children): Call it self to destroy sub menu children.
+
+
2002-03-16 Eli Zaretskii <eliz@is.elta.co.il>
* Version 21.2 released.
XtSetArg (al[0], XmNsubMenuId, &submenu);
XtGetValues (children[i], al, 1);
if (submenu)
- XtDestroyWidget (submenu);
+ {
+ destroy_all_children (submenu, 0);
+ XtDestroyWidget (submenu);
+ }
XtDestroyWidget (children[i]);
}
(XtPointer)instance);
XtManageChild (button);
}
+
+ if (widget_list)
+ XtFree ((char*) widget_list);
}
}
else if (!contents)