From 2c1fda08e889cad07acb452230da06f9c383d21c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 4 Jun 2010 16:04:37 -0700 Subject: Use libc instead of deprecated libc wrappers for malloc/calloc/free. --- src/i810_dga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/i810_dga.c') diff --git a/src/i810_dga.c b/src/i810_dga.c index 3f530579..52a01b76 100644 --- a/src/i810_dga.c +++ b/src/i810_dga.c @@ -84,10 +84,10 @@ I810DGAInit(ScreenPtr pScreen) while (pMode) { - newmodes = xrealloc(modes, (num + 1) * sizeof(DGAModeRec)); + newmodes = realloc(modes, (num + 1) * sizeof(DGAModeRec)); if (!newmodes) { - xfree(modes); + free(modes); return FALSE; } modes = newmodes; -- cgit v1.2.3