diff options
author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-15 13:54:14 +0000 |
---|---|---|
committer | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-15 13:54:14 +0000 |
commit | 9acc68b10b087a8b19add634cdec7f66d6caf51f (patch) | |
tree | 5d8db1d904eb8e31297f5ad86f1c3ffa81ae979d /lwlib/lwlib-Xlw.c | |
parent | 4ffe73ce3c7d9bf34b51fb859812c00225de9ff1 (diff) | |
download | emacs-9acc68b10b087a8b19add634cdec7f66d6caf51f.tar.gz |
*** empty log message ***
Diffstat (limited to 'lwlib/lwlib-Xlw.c')
-rw-r--r-- | lwlib/lwlib-Xlw.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c index 893833efca3..d34a012ae3c 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, |