Remove Xcalloc/Xmalloc/Xfree calls
[mesa.git] / src / glx / clientattrib.c
index 7792fa31f9d41233f040431f58b87b8f9e9fc719..4721fe938fde94380061cf6675cb3b29cf7d792c 100644 (file)
@@ -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;