diff options
author | Jan D <jan.h.d@swipnet.se> | 2011-01-31 07:44:05 +0100 |
---|---|---|
committer | Jan D <jan.h.d@swipnet.se> | 2011-01-31 07:44:05 +0100 |
commit | 3370edca839da739185a7a0d91d22dfa23a22188 (patch) | |
tree | 507a2ed6c5a4a4bafe93411bf61ddd8d03b6284d /lwlib/lwlib-utils.c | |
parent | 0832490d4431f3952c0c45de0d9c30ce0f8cc5c2 (diff) | |
download | emacs-3370edca839da739185a7a0d91d22dfa23a22188.tar.gz |
Use xmalloc instead of malloc.
* lwlib-Xm.c (make_destroyed_instance):
* lwlib-utils.c (XtApplyToWidgets):
* lwlib.c (safe_strdup, malloc_widget_value)
(allocate_widget_info, allocate_widget_instance): Use xmalloc
instead of malloc.
Diffstat (limited to 'lwlib/lwlib-utils.c')
-rw-r--r-- | lwlib/lwlib-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index 4e095d33fad..30f4f94f376 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c @@ -74,7 +74,7 @@ XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg) the procedure might add/delete elements, which would lose badly. */ int nkids = cw->composite.num_children; - Widget *kids = (Widget *) malloc (sizeof (Widget) * nkids); + Widget *kids = (Widget *) xmalloc (sizeof (Widget) * nkids); int i; memcpy ((char *) kids, (char *) cw->composite.children, sizeof (Widget) * nkids); |