# HG changeset patch
# User Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
# Date 761320454 0
# Node ID ddd8c555b2fc91df9620ef679a669478b52335ce
# Parent  27e4e703f089c323327cae5dac301d8d9cb3d2e1
*** empty log message ***

diff -r 27e4e703f089 -r ddd8c555b2fc lwlib/lwlib-Xlw.c
--- a/lwlib/lwlib-Xlw.c	Mon Feb 14 23:28:23 1994 +0000
+++ b/lwlib/lwlib-Xlw.c	Tue Feb 15 13:54:14 1994 +0000
@@ -75,7 +75,15 @@
 xlw_create_menubar (instance)
      widget_instance* instance;
 {
-  Widget widget =
+  Widget widget;
+
+  widget_value *tem = (widget_value *) XtMalloc (sizeof (widget_value));
+
+  /* _XtCreate is freeing the object we passed,
+     so make a copy that we free later.  */
+  bcopy (instance->info->val, tem, sizeof (widget_value));
+
+  widget =
     XtVaCreateWidget (instance->info->name, xlwMenuWidgetClass,
 		      instance->parent,
 		      XtNmenu, instance->info->val,