aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib
diff options
context:
space:
mode:
authorFred Pierresteguy <[email protected]>1994-02-15 13:54:14 +0000
committerFred Pierresteguy <[email protected]>1994-02-15 13:54:14 +0000
commit9acc68b10b087a8b19add634cdec7f66d6caf51f (patch)
tree5d8db1d904eb8e31297f5ad86f1c3ffa81ae979d /lwlib
parent4ffe73ce3c7d9bf34b51fb859812c00225de9ff1 (diff)
*** empty log message ***
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/lwlib-Xlw.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c
index 893833efca..d34a012ae3 100644
--- a/lwlib/lwlib-Xlw.c
+++ b/lwlib/lwlib-Xlw.c
@@ -75,7 +75,15 @@ static Widget
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,