diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:10:55 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:42 +0000 |
commit | caf545063457591f88e1f7bcd25dbd0342f44343 (patch) | |
tree | a2c87d098235fe7bdcc6c59dfb303b7e4b3f650a /hw/kdrive/smi | |
parent | d57060f16714f5667722001bd1a4500059dd59e1 (diff) |
KDrive: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'hw/kdrive/smi')
-rw-r--r-- | hw/kdrive/smi/smivideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/smi/smivideo.c b/hw/kdrive/smi/smivideo.c index 46593a0ee..f372498c0 100644 --- a/hw/kdrive/smi/smivideo.c +++ b/hw/kdrive/smi/smivideo.c @@ -342,7 +342,7 @@ mach64PaintRegion (ScreenPtr pScreen, RegionPtr pRgn, Pixel fg) BoxPtr pBox = REGION_RECTS (pRgn); int nBox = REGION_NUM_RECTS (pRgn); - rects = ALLOCATE_LOCAL (nBox * sizeof (xRectangle)); + rects = xalloc (nBox * sizeof (xRectangle)); if (!rects) goto bail0; r = rects; @@ -371,7 +371,7 @@ mach64PaintRegion (ScreenPtr pScreen, RegionPtr pRgn, Pixel fg) FreeScratchGC (pGC); bail1: - DEALLOCATE_LOCAL (rects); + xfree (rects); bail0: ; } |