summaryrefslogtreecommitdiff
path: root/hw/xwin/winwindow.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:09:32 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:42 +0000
commit1c84337af0ac40498a53aa36289e2f6f5ff8b1c6 (patch)
tree157aa215ee4b6acb067231b32fa1fa3efdc7887f /hw/xwin/winwindow.c
parentf7d5c292e44113ea8eb32e67e91cd02e520df5e3 (diff)
Xwin: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'hw/xwin/winwindow.c')
-rw-r--r--hw/xwin/winwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xwin/winwindow.c b/hw/xwin/winwindow.c
index e844dbfb3..1600996df 100644
--- a/hw/xwin/winwindow.c
+++ b/hw/xwin/winwindow.c
@@ -167,7 +167,7 @@ winCopyWindowNativeGDI (WindowPtr pWin,
nbox = REGION_NUM_RECTS(prgnDst);
/* Allocate source points for each box */
- if(!(pptSrc = (DDXPointPtr )ALLOCATE_LOCAL(nbox * sizeof(DDXPointRec))))
+ if(!(pptSrc = (DDXPointPtr )xalloc(nbox * sizeof(DDXPointRec))))
return;
/* Set an iterator pointer */
@@ -206,7 +206,7 @@ winCopyWindowNativeGDI (WindowPtr pWin,
}
/* Cleanup the regions, etc. */
- DEALLOCATE_LOCAL(pptSrc);
+ xfree(pptSrc);
REGION_DESTROY(pWin->drawable.pScreen, prgnDst);
}