diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:18:22 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:46 +0000 |
commit | 934281126f6c602fa4bd0c2e29d8c9f44fe532b8 (patch) | |
tree | 90ae5f5a9d43a266d8ba361764370e6874f079c7 /Xext/mbufpx.c | |
parent | fb32bb9839b615f7297fbfac2050bc216682f01c (diff) |
Xext: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'Xext/mbufpx.c')
-rw-r--r-- | Xext/mbufpx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/mbufpx.c b/Xext/mbufpx.c index a04b97d9d..21d525906 100644 --- a/Xext/mbufpx.c +++ b/Xext/mbufpx.c @@ -263,7 +263,7 @@ MultibufferPaintBackgroundRegion(pWin, pDrawable, pRegion) int nrects = REGION_NUM_RECTS(pRegion); BoxPtr pbox = REGION_RECTS(pRegion); - pRects = (xRectangle *)ALLOCATE_LOCAL(nrects * sizeof(xRectangle)); + pRects = (xRectangle *)xalloc(nrects * sizeof(xRectangle)); if (pRects) { int i; @@ -275,7 +275,7 @@ MultibufferPaintBackgroundRegion(pWin, pDrawable, pRegion) pRects[i].height = pbox->y2 - pbox->y1; } MultibufferPaintBackgroundRectangles(pWin, pDrawable, nrects, pRects); - DEALLOCATE_LOCAL(pRects); + xfree(pRects); } } |