summaryrefslogtreecommitdiffstats
path: root/src/glx/applegl_glx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/applegl_glx.c')
-rw-r--r--src/glx/applegl_glx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glx/applegl_glx.c b/src/glx/applegl_glx.c
index 9be12b0f6b2..c3597cee765 100644
--- a/src/glx/applegl_glx.c
+++ b/src/glx/applegl_glx.c
@@ -134,12 +134,12 @@ applegl_create_context(struct glx_screen *psc,
/* TODO: Integrate this with apple_glx_create_context and make
* struct apple_glx_context inherit from struct glx_context. */
- gc = Xcalloc(1, sizeof (*gc));
+ gc = calloc(1, sizeof(*gc));
if (gc == NULL)
return NULL;
if (!glx_context_init(gc, psc, config)) {
- Xfree(gc);
+ free(gc);
return NULL;
}
@@ -173,7 +173,7 @@ applegl_create_screen(int screen, struct glx_display * priv)
{
struct glx_screen *psc;
- psc = Xmalloc(sizeof *psc);
+ psc = malloc(sizeof *psc);
if (psc == NULL)
return NULL;