summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Varargs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Varargs.c b/src/Varargs.c
index b03c889..6c9f9ee 100644
--- a/src/Varargs.c
+++ b/src/Varargs.c
@@ -318,7 +318,7 @@ _XtFreeArgList(
if (args) {
if (typed_count)
for (p = args + total_count; total_count--; ++p) {
- if (p->value) XtFree((char *)p->value);
+ XtFree((char *)p->value);
}
XtFree((char *)args);
}
@@ -398,8 +398,7 @@ _XtVaToArgList(
}
}
- if (resources != NULL)
- XtFree((XtPointer)resources);
+ XtFree((XtPointer)resources);
*num_args_return = (Cardinal)count;
*args_return = (ArgList)args;