diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:09:14 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:42 +0000 |
commit | f7d5c292e44113ea8eb32e67e91cd02e520df5e3 (patch) | |
tree | cf22b6129379e15dd3c2286155599037cfeedd72 /mfb/mfbbitblt.c | |
parent | be9ee17f960cc3d8a8f999cab1579e83d9aea520 (diff) |
mfb: Remove usage of alloca
Replace with heap-based allocations.
Diffstat (limited to 'mfb/mfbbitblt.c')
-rw-r--r-- | mfb/mfbbitblt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mfb/mfbbitblt.c b/mfb/mfbbitblt.c index 0f84df354..153cf6ac6 100644 --- a/mfb/mfbbitblt.c +++ b/mfb/mfbbitblt.c @@ -351,7 +351,7 @@ int dstx, dsty; numRects = REGION_NUM_RECTS(&rgnDst); if (numRects && width && height) { - if(!(pptSrc = (DDXPointPtr)ALLOCATE_LOCAL(numRects * + if(!(pptSrc = (DDXPointPtr)xalloc(numRects * sizeof(DDXPointRec)))) { REGION_UNINIT(pGC->pScreen, &rgnDst); @@ -370,7 +370,7 @@ int dstx, dsty; if (pGC->planemask & 1) (*localDoBitBlt) (pSrcDrawable, pDstDrawable, pGC->alu, &rgnDst, pptSrc); - DEALLOCATE_LOCAL(pptSrc); + xfree(pptSrc); } prgnExposed = NULL; |