summaryrefslogtreecommitdiffstats
path: root/src/glx/apple
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/apple')
-rw-r--r--src/glx/apple/glxreply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/apple/glxreply.c b/src/glx/apple/glxreply.c
index f17ebe6b406..240caa738f9 100644
--- a/src/glx/apple/glxreply.c
+++ b/src/glx/apple/glxreply.c
@@ -79,7 +79,7 @@ __glXReadPixelReply(Display * dpy, struct glx_context * gc, unsigned max_dim,
size = reply.length * 4;
if (size != 0) {
- void *buf = Xmalloc(size);
+ void *buf = malloc(size);
if (buf == NULL) {
_XEatData(dpy, size);
@@ -94,7 +94,7 @@ __glXReadPixelReply(Display * dpy, struct glx_context * gc, unsigned max_dim,
}
__glEmptyImage(gc, 3, width, height, depth, format, type, buf, dest);
- Xfree(buf);
+ free(buf);
}
}
}