diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 6314b97f0..ae951ed9a 100644 --- a/exa/exa_accel.c +++ b/exa/exa_accel.c @@ -497,7 +497,7 @@ exaCopyNtoN (DrawablePtr pSrcDrawable, if (!pGC || !exaGCReadsDestination(pDstDrawable, pGC->planemask, pGC->fillStyle, pGC->alu)) { - xRectangle *rects = ALLOCATE_LOCAL(nbox * sizeof(xRectangle)); + xRectangle *rects = xalloc(nbox * sizeof(xRectangle)); if (rects) { int i; @@ -510,7 +510,7 @@ exaCopyNtoN (DrawablePtr pSrcDrawable, } region = RECTS_TO_REGION(pScreen, nbox, rects, CT_YXBANDED); - DEALLOCATE_LOCAL(rects); + xfree(rects); } }