diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:36:36 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:36:36 +0000 |
commit | 1179ddea94efae6606162e9a1b0f2bf752ae4dd0 (patch) | |
tree | 8971e29860b1a04868badf72c048b52ea4fd9027 /exa/exa_accel.c | |
parent | 1eb6a1d0d2817cd0ce96fb27db3ceb2d0ff024af (diff) |
EXA: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'exa/exa_accel.c')
-rw-r--r-- | exa/exa_accel.c | 4 |
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); } } |