+2003-01-26 Jan D. <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-12-22 Richard M. Stallman <rms@gnu.org>
* xlwmenu.c (pop_new_stack_if_no_contents): Do nothing if
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)
{
destroy_all_children (widget, num_children_to_keep);
make_menu_in_widget (instance, widget, val->contents,
- num_children_to_keep);
+ num_children_to_keep);
}
XtFree ((char *) children);