From 3f3ff971ecff9936cebafc813af9193b97bba89c Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Thu, 6 May 2010 01:44:06 +0700 Subject: Replace X-allocation functions with their C89 counterparts The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by: Mikhail Gusarov Reviewed-by: Peter Hutterer --- fb/fbpixmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fb/fbpixmap.c') diff --git a/fb/fbpixmap.c b/fb/fbpixmap.c index 311da9e62..c73f9f42c 100644 --- a/fb/fbpixmap.c +++ b/fb/fbpixmap.c @@ -101,7 +101,7 @@ fbDestroyPixmap (PixmapPtr pPixmap) if(--pPixmap->refcnt) return TRUE; dixFreePrivates(pPixmap->devPrivates); - xfree(pPixmap); + free(pPixmap); return TRUE; } @@ -308,7 +308,7 @@ fbPixmapToRegion(PixmapPtr pPix) pReg->extents.y2 = REGION_END(pReg)->y2; if (pReg->data->numRects == 1) { - xfree(pReg->data); + free(pReg->data); pReg->data = (RegDataPtr)NULL; } } -- cgit v1.2.3