summaryrefslogtreecommitdiff
path: root/mfb/mfbwindow.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:09:14 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:42 +0000
commitf7d5c292e44113ea8eb32e67e91cd02e520df5e3 (patch)
treecf22b6129379e15dd3c2286155599037cfeedd72 /mfb/mfbwindow.c
parentbe9ee17f960cc3d8a8f999cab1579e83d9aea520 (diff)
mfb: Remove usage of alloca
Replace with heap-based allocations.
Diffstat (limited to 'mfb/mfbwindow.c')
-rw-r--r--mfb/mfbwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mfb/mfbwindow.c b/mfb/mfbwindow.c
index 4cbf59fdc..30b8857b1 100644
--- a/mfb/mfbwindow.c
+++ b/mfb/mfbwindow.c
@@ -150,7 +150,7 @@ mfbCopyWindow(pWin, ptOldOrg, prgnSrc)
pbox = REGION_RECTS(prgnDst);
nbox = REGION_NUM_RECTS(prgnDst);
- if(!(pptSrc = (DDXPointPtr )ALLOCATE_LOCAL(nbox * sizeof(DDXPointRec))))
+ if(!(pptSrc = (DDXPointPtr )xalloc(nbox * sizeof(DDXPointRec))))
return;
ppt = pptSrc;
@@ -162,6 +162,6 @@ mfbCopyWindow(pWin, ptOldOrg, prgnSrc)
mfbDoBitblt((DrawablePtr)pwinRoot, (DrawablePtr)pwinRoot,
GXcopy, prgnDst, pptSrc);
- DEALLOCATE_LOCAL(pptSrc);
+ xfree(pptSrc);
REGION_DESTROY(pWin->drawable.pScreen, prgnDst);
}