summaryrefslogtreecommitdiff
path: root/cfb/cfbbitblt.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:14:04 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:45 +0000
commitca75261beedc3e00767b3812a81b7dac4437f4a1 (patch)
tree39e66fdde5253d6b3826f4149c9618ee29bbf2ea /cfb/cfbbitblt.c
parent914922fd6100a409a3dfd1c64511ed6bdc344bef (diff)
cfb: Remove usage of alloca
Replace with xalloc/xfree.
Diffstat (limited to 'cfb/cfbbitblt.c')
-rw-r--r--cfb/cfbbitblt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cfb/cfbbitblt.c b/cfb/cfbbitblt.c
index d86f9df11..00bf41367 100644
--- a/cfb/cfbbitblt.c
+++ b/cfb/cfbbitblt.c
@@ -296,7 +296,7 @@ cfbBitBlt (
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);
@@ -313,7 +313,7 @@ cfbBitBlt (
}
(*doBitBlt) (pSrcDrawable, pDstDrawable, pGC->alu, &rgnDst, pptSrc, pGC->planemask);
- DEALLOCATE_LOCAL(pptSrc);
+ xfree(pptSrc);
}
prgnExposed = NULL;
@@ -559,7 +559,7 @@ cfbCopyPlaneReduce (
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);
@@ -576,7 +576,7 @@ cfbCopyPlaneReduce (
}
(*doCopyPlane) (pSrcDrawable, pDstDrawable, pGC->alu, &rgnDst, pptSrc, pGC->planemask, bitPlane);
- DEALLOCATE_LOCAL(pptSrc);
+ xfree(pptSrc);
}
prgnExposed = NULL;