summaryrefslogtreecommitdiff
path: root/miext/damage
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:04:27 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:41 +0000
commit3633ae6efb57c5405c26e8ae132b9371e5f920de (patch)
tree61009c66455c8bfc151d30627db5c950b6233c5e /miext/damage
parent2761c103311a1160bc483fd0367d654733df8598 (diff)
Damage: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'miext/damage')
-rwxr-xr-xmiext/damage/damage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index 58f37e990..17425aeb2 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -1399,7 +1399,7 @@ damageText (DrawablePtr pDrawable,
imageblt = (textType == TT_IMAGE8) || (textType == TT_IMAGE16);
- charinfo = (CharInfoPtr *) ALLOCATE_LOCAL(count * sizeof(CharInfoPtr));
+ charinfo = (CharInfoPtr *) xalloc(count * sizeof(CharInfoPtr));
if (!charinfo)
return x;
@@ -1421,7 +1421,7 @@ damageText (DrawablePtr pDrawable,
(*pGC->ops->PolyGlyphBlt)(pDrawable, pGC, x, y, n, charinfo,
FONTGLYPHS(pGC->font));
}
- DEALLOCATE_LOCAL(charinfo);
+ xfree(charinfo);
return x + w;
}