summaryrefslogtreecommitdiff
path: root/mi/mizerarc.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:08:51 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:41 +0000
commitbe9ee17f960cc3d8a8f999cab1579e83d9aea520 (patch)
treef563ce4405d197063ed262da3f5355d334335e43 /mi/mizerarc.c
parent3633ae6efb57c5405c26e8ae132b9371e5f920de (diff)
mi: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'mi/mizerarc.c')
-rw-r--r--mi/mizerarc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mi/mizerarc.c b/mi/mizerarc.c
index 9d4715a30..947b85aac 100644
--- a/mi/mizerarc.c
+++ b/mi/mizerarc.c
@@ -744,7 +744,7 @@ miZeroPolyArc(pDraw, pGC, narcs, parcs)
dospans = (pGC->fillStyle != FillSolid);
if (dospans)
{
- widths = (int *)ALLOCATE_LOCAL(sizeof(int) * numPts);
+ widths = (int *)xalloc(sizeof(int) * numPts);
if (!widths)
return;
maxw = 0;
@@ -761,12 +761,12 @@ miZeroPolyArc(pDraw, pGC, narcs, parcs)
(unsigned char *) pGC->dash, (int)pGC->numInDashList,
&dinfo.dashOffsetInit);
}
- points = (DDXPointPtr)ALLOCATE_LOCAL(sizeof(DDXPointRec) * numPts);
+ points = (DDXPointPtr)xalloc(sizeof(DDXPointRec) * numPts);
if (!points)
{
if (dospans)
{
- DEALLOCATE_LOCAL(widths);
+ xfree(widths);
}
return;
}
@@ -843,9 +843,9 @@ miZeroPolyArc(pDraw, pGC, narcs, parcs)
}
}
}
- DEALLOCATE_LOCAL(points);
+ xfree(points);
if (dospans)
{
- DEALLOCATE_LOCAL(widths);
+ xfree(widths);
}
}