summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-Xm.c
diff options
context:
space:
mode:
authorJan D <jan.h.d@swipnet.se>2011-01-31 07:44:05 +0100
committerJan D <jan.h.d@swipnet.se>2011-01-31 07:44:05 +0100
commit3370edca839da739185a7a0d91d22dfa23a22188 (patch)
tree507a2ed6c5a4a4bafe93411bf61ddd8d03b6284d /lwlib/lwlib-Xm.c
parent0832490d4431f3952c0c45de0d9c30ce0f8cc5c2 (diff)
downloademacs-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-Xm.c')
-rw-r--r--lwlib/lwlib-Xm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 14d1c03c4a3..059cf10d2bb 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -173,7 +173,7 @@ make_destroyed_instance (char* name,
Boolean pop_up_p)
{
destroyed_instance* instance =
- (destroyed_instance*)malloc (sizeof (destroyed_instance));
+ (destroyed_instance*) xmalloc (sizeof (destroyed_instance));
instance->name = safe_strdup (name);
instance->type = safe_strdup (type);
instance->widget = widget;