summaryrefslogtreecommitdiffstats
path: root/src/glx/single2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/single2.c')
-rw-r--r--src/glx/single2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glx/single2.c b/src/glx/single2.c
index d422d9dcf1a..993ad3647f9 100644
--- a/src/glx/single2.c
+++ b/src/glx/single2.c
@@ -721,7 +721,7 @@ __indirect_glGetString(GLenum name)
*/
const size_t size = 7 + strlen((char *) s) + 4;
- gc->version = Xmalloc(size);
+ gc->version = malloc(size);
if (gc->version == NULL) {
/* If we couldn't allocate memory for the new string,
* make a best-effort and just copy the client-side version
@@ -737,7 +737,7 @@ __indirect_glGetString(GLenum name)
else {
snprintf((char *) gc->version, size, "%u.%u (%s)",
client_major, client_minor, s);
- Xfree(s);
+ free(s);
s = gc->version;
}
}
@@ -782,7 +782,7 @@ __indirect_glGetString(GLenum name)
#endif
__glXCalculateUsableGLExtensions(gc, (char *) s, major, minor);
- XFree(s);
+ free(s);
s = gc->extensions;
break;
}