summaryrefslogtreecommitdiff
path: root/src/apm_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apm_funcs.c')
-rw-r--r--src/apm_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apm_funcs.c b/src/apm_funcs.c
index 48e5ad6..29328d1 100644
--- a/src/apm_funcs.c
+++ b/src/apm_funcs.c
@@ -702,7 +702,7 @@ A(TEGlyphRenderer)(ScrnInfoPtr pScrn, int x, int y, int w, int h,
dwords = (w2 + 31) >> 5;
dwords <<= 2;
- base0 = base = (CARD32*)xalloc(dwords * h);
+ base0 = base = malloc(dwords * h);
if (!base)
return; /* Should not happen : it's rather small... */
@@ -713,7 +713,7 @@ A(TEGlyphRenderer)(ScrnInfoPtr pScrn, int x, int y, int w, int h,
A(WriteBitmap)(pScrn, x, y, w, h2, (unsigned char *)base0, dwords,
skipleft, fg, bg, rop, planemask);
- xfree(base0);
+ free(base0);
}
static void A(SetupForMono8x8PatternFill)(ScrnInfoPtr pScrn, int patx, int paty,