diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:08:51 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:41 +0000 |
commit | be9ee17f960cc3d8a8f999cab1579e83d9aea520 (patch) | |
tree | f563ce4405d197063ed262da3f5355d334335e43 /mi/mipolypnt.c | |
parent | 3633ae6efb57c5405c26e8ae132b9371e5f920de (diff) |
mi: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'mi/mipolypnt.c')
-rw-r--r-- | mi/mipolypnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mi/mipolypnt.c b/mi/mipolypnt.c index afe3f724a..56026bdbd 100644 --- a/mi/mipolypnt.c +++ b/mi/mipolypnt.c @@ -106,7 +106,7 @@ miPolyPoint(pDrawable, pGC, mode, npt, pptInit) DoChangeGC(pGC, GCFillStyle, &fsNew, 0); ValidateGC(pDrawable, pGC); } - if(!(pwidthInit = (int *)ALLOCATE_LOCAL(npt * sizeof(int)))) + if(!(pwidthInit = (int *)xalloc(npt * sizeof(int)))) return; pwidth = pwidthInit; for(i = 0; i < npt; i++) @@ -118,6 +118,6 @@ miPolyPoint(pDrawable, pGC, mode, npt, pptInit) DoChangeGC(pGC, GCFillStyle, &fsOld, 0); ValidateGC(pDrawable, pGC); } - DEALLOCATE_LOCAL(pwidthInit); + xfree(pwidthInit); } |