summaryrefslogtreecommitdiff
path: root/afb/afbfillrct.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:14:25 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:45 +0000
commit683ee1776d172035c465aa8fc84ccd53bb8ba7fd (patch)
treeab506d9ed2b8e43c35935c0ee3f17d74dddd89c7 /afb/afbfillrct.c
parentca75261beedc3e00767b3812a81b7dac4437f4a1 (diff)
afb: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'afb/afbfillrct.c')
-rw-r--r--afb/afbfillrct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/afb/afbfillrct.c b/afb/afbfillrct.c
index 06fb37365..1600deab3 100644
--- a/afb/afbfillrct.c
+++ b/afb/afbfillrct.c
@@ -111,7 +111,7 @@ afbPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill, xRectangle *pre
numRects = REGION_NUM_RECTS(prgnClip) * nrectFill;
if (numRects > NUM_STACK_RECTS) {
- pboxClippedBase = (BoxPtr)ALLOCATE_LOCAL(numRects * sizeof(BoxRec));
+ pboxClippedBase = (BoxPtr)xalloc(numRects * sizeof(BoxRec));
if (!pboxClippedBase)
return;
}
@@ -287,5 +287,5 @@ afbPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill, xRectangle *pre
}
}
if (pboxClippedBase != stackRects)
- DEALLOCATE_LOCAL(pboxClippedBase);
+ xfree(pboxClippedBase);
}