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/xace.c | |
parent | fb32bb9839b615f7297fbfac2050bc216682f01c (diff) |
Xext: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'Xext/xace.c')
-rw-r--r-- | Xext/xace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/xace.c b/Xext/xace.c index 63856315c..00c3b8f9b 100644 --- a/Xext/xace.c +++ b/Xext/xace.c @@ -437,7 +437,7 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h, /* convert region to list-of-rectangles for PolyFillRect */ - pRects = (xRectangle *)ALLOCATE_LOCAL(nRects * sizeof(xRectangle *)); + pRects = (xRectangle *)xalloc(nRects * sizeof(xRectangle *)); if (!pRects) { failed = TRUE; @@ -489,7 +489,7 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h, */ bzero(pBuf, (int)(widthBytesLine * h)); } - if (pRects) DEALLOCATE_LOCAL(pRects); + if (pRects) xfree(pRects); if (pScratchGC) FreeScratchGC(pScratchGC); if (pPix) FreeScratchPixmapHeader(pPix); } |