summaryrefslogtreecommitdiff
path: root/Xext/xace.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xext/xace.c')
-rw-r--r--Xext/xace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/xace.c b/Xext/xace.c
index 7b27ecd6a..11145d117 100644
--- a/Xext/xace.c
+++ b/Xext/xace.c
@@ -461,7 +461,7 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h,
/* convert region to list-of-rectangles for PolyFillRect */
- pRects = (xRectangle *)ALLOCATE_LOCAL(nRects * sizeof(xRectangle *));
+ pRects = (xRectangle *)xalloc(nRects * sizeof(xRectangle *));
if (!pRects)
{
failed = TRUE;
@@ -513,7 +513,7 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h,
*/
bzero(pBuf, (int)(widthBytesLine * h));
}
- if (pRects) DEALLOCATE_LOCAL(pRects);
+ if (pRects) xfree(pRects);
if (pScratchGC) FreeScratchGC(pScratchGC);
if (pPix) FreeScratchPixmapHeader(pPix);
}