From 1179ddea94efae6606162e9a1b0f2bf752ae4dd0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 5 Nov 2007 14:36:36 +0000 Subject: [PATCH] EXA: Remove usage of alloca Replace with heap allocations. --- exa/exa_accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }