summaryrefslogtreecommitdiff
path: root/exa/exa_accel.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:36:36 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:36:36 +0000
commit1179ddea94efae6606162e9a1b0f2bf752ae4dd0 (patch)
tree8971e29860b1a04868badf72c048b52ea4fd9027 /exa/exa_accel.c
parent1eb6a1d0d2817cd0ce96fb27db3ceb2d0ff024af (diff)
EXA: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'exa/exa_accel.c')
-rw-r--r--exa/exa_accel.c4
1 files 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);
}
}