summaryrefslogtreecommitdiffstats
path: root/src/glx/clientattrib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/clientattrib.c')
-rw-r--r--src/glx/clientattrib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/clientattrib.c b/src/glx/clientattrib.c
index 7792fa31f9d..4721fe938fd 100644
--- a/src/glx/clientattrib.c
+++ b/src/glx/clientattrib.c
@@ -75,7 +75,7 @@ __indirect_glPushClientAttrib(GLuint mask)
if (spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]) {
if (!(sp = *spp)) {
- sp = (__GLXattribute *) Xmalloc(sizeof(__GLXattribute));
+ sp = (__GLXattribute *) malloc(sizeof(__GLXattribute));
*spp = sp;
}
sp->mask = mask;
@@ -135,7 +135,7 @@ __glFreeAttributeState(struct glx_context * gc)
spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]; spp++) {
sp = *spp;
if (sp) {
- XFree((char *) sp);
+ free((char *) sp);
}
else {
break;