diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:11:59 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:42 +0000 |
commit | 733d42065f2c24505b3874ce51c18f6063c2b67e (patch) | |
tree | dd8b4029631bfa4560632fad1912c0bc1802498d /hw/xfree86/xf8_32bpp/cfbwindow.c | |
parent | caf545063457591f88e1f7bcd25dbd0342f44343 (diff) |
XFree86: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'hw/xfree86/xf8_32bpp/cfbwindow.c')
-rw-r--r-- | hw/xfree86/xf8_32bpp/cfbwindow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/xf8_32bpp/cfbwindow.c b/hw/xfree86/xf8_32bpp/cfbwindow.c index 787cbdec6..2e6057f12 100644 --- a/hw/xfree86/xf8_32bpp/cfbwindow.c +++ b/hw/xfree86/xf8_32bpp/cfbwindow.c @@ -77,7 +77,7 @@ cfb8_32CopyWindow(pWin, ptOldOrg, prgnSrc) pbox = REGION_RECTS(&rgnDst); nbox = REGION_NUM_RECTS(&rgnDst); if(!nbox || - !(pptSrc = (DDXPointPtr )ALLOCATE_LOCAL(nbox * sizeof(DDXPointRec)))) + !(pptSrc = (DDXPointPtr )xalloc(nbox * sizeof(DDXPointRec)))) { REGION_UNINIT(pScreen, &rgnDst); return; @@ -97,7 +97,7 @@ cfb8_32CopyWindow(pWin, ptOldOrg, prgnSrc) cfbDoBitblt8To8GXcopy((DrawablePtr)pwinRoot, (DrawablePtr)pwinRoot, GXcopy, &rgnDst, pptSrc, ~0); - DEALLOCATE_LOCAL(pptSrc); + xfree(pptSrc); REGION_UNINIT(pScreen, &rgnDst); if(freeReg) REGION_DESTROY(pScreen, borderClip); |