summaryrefslogtreecommitdiff
path: root/glx/xfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'glx/xfont.c')
-rw-r--r--glx/xfont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glx/xfont.c b/glx/xfont.c
index e3c7f32b1..35fad4d5a 100644
--- a/glx/xfont.c
+++ b/glx/xfont.c
@@ -76,7 +76,7 @@ static int __glXMakeBitmapFromGlyph(FontPtr font, CharInfoPtr pci)
p = buf;
allocbuf = 0;
} else {
- p = (unsigned char *) xalloc(allocBytes);
+ p = (unsigned char *) malloc(allocBytes);
if (!p)
return BadAlloc;
allocbuf = p;
@@ -100,7 +100,7 @@ static int __glXMakeBitmapFromGlyph(FontPtr font, CharInfoPtr pci)
allocbuf ? allocbuf : buf) );
if (allocbuf) {
- xfree(allocbuf);
+ free(allocbuf);
}
return Success;
#undef __GL_CHAR_BUF_SIZE