EXA: Remove usage of alloca
Replace with heap allocations.
This commit is contained in:
parent
1eb6a1d0d2
commit
1179ddea94
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue