diff options
author | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-18 13:24:41 +0000 |
---|---|---|
committer | Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr> | 1994-02-18 13:24:41 +0000 |
commit | 0b96f00bb4b192ddb350ba1326c6b87bd67b5e93 (patch) | |
tree | 6ee4e561cef4f5d361eee393ea668ae938b6719e /lwlib/lwlib-Xlw.c | |
parent | b3eaa88e046027f4846074d6994cd8312bae3e69 (diff) | |
download | emacs-0b96f00bb4b192ddb350ba1326c6b87bd67b5e93.tar.gz |
*** empty log message ***
Diffstat (limited to 'lwlib/lwlib-Xlw.c')
-rw-r--r-- | lwlib/lwlib-Xlw.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c index c48d6614b28..e07ee19c7bf 100644 --- a/lwlib/lwlib-Xlw.c +++ b/lwlib/lwlib-Xlw.c @@ -71,13 +71,14 @@ pick_hook (w, client_data, call_data) } /* creation functions */ + static Widget xlw_create_menubar (instance) widget_instance* instance; { Widget widget; - widget_value *tem = (widget_value *) XtMalloc (sizeof (widget_value)); + widget_value *tem = malloc_widget_value (); /* _XtCreate is freeing the object we passed, so make a copy that we free later. */ @@ -89,7 +90,7 @@ xlw_create_menubar (instance) XtNmenu, tem, 0); - XtFree (tem); + free_widget_value (tem); XtAddCallback (widget, XtNopen, pre_hook, (XtPointer)instance); XtAddCallback (widget, XtNselect, pick_hook, (XtPointer)instance); @@ -106,7 +107,7 @@ xlw_create_popup_menu (instance) Widget widget; - widget_value *tem = (widget_value *) XtMalloc (sizeof (widget_value)); + widget_value *tem = malloc_widget_value (); /* _XtCreate is freeing the object we passed, so make a copy that we free later. */ @@ -119,7 +120,7 @@ xlw_create_popup_menu (instance) XtNhorizontal, False, 0); - XtFree (tem); + free_widget_value (tem); XtAddCallback (widget, XtNselect, pick_hook, (XtPointer)instance); |