aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/FreeEData.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/FreeEData.c')
-rw-r--r--libX11/src/FreeEData.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libX11/src/FreeEData.c b/libX11/src/FreeEData.c
index 3a7abca74..ce78467d3 100644
--- a/libX11/src/FreeEData.c
+++ b/libX11/src/FreeEData.c
@@ -36,9 +36,9 @@ _XFreeExtData (XExtData *extension)
while (extension) {
if (extension->free_private)
(*extension->free_private)(extension);
- else Xfree ((char *)extension->private_data);
+ else Xfree (extension->private_data);
temp = extension->next;
- Xfree ((char *)extension);
+ Xfree (extension);
extension = temp;
}
return 0;