Mercurial > emacs
changeset 5951:ddd8c555b2fc
*** empty log message ***
author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> |
---|---|
date | Tue, 15 Feb 1994 13:54:14 +0000 |
parents | 27e4e703f089 |
children | 908e36c0235d |
files | lwlib/lwlib-Xlw.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,