aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/TextToStr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/TextToStr.c')
-rw-r--r--libX11/src/TextToStr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libX11/src/TextToStr.c b/libX11/src/TextToStr.c
index 36d9f0706..de9897ae1 100644
--- a/libX11/src/TextToStr.c
+++ b/libX11/src/TextToStr.c
@@ -77,7 +77,7 @@ Status XTextPropertyToStringList (
start = Xmalloc ((datalen + 1) * sizeof (char)); /* for <NUL> */
if (!start) {
- Xfree ((char *) list);
+ Xfree (list);
return False;
}
@@ -111,7 +111,7 @@ void XFreeStringList (char **list)
{
if (list) {
if (list[0]) Xfree (list[0]);
- Xfree ((char *) list);
+ Xfree (list);
list = NULL;
}
}