gpos_feature_names = NULL;
otf_gstring.size = otf_gstring.used = len;
- otf_gstring.glyphs = (OTF_Glyph *) alloca (sizeof (OTF_Glyph) * len);
+ otf_gstring.glyphs = (OTF_Glyph *) malloc (sizeof (OTF_Glyph) * len);
memset (otf_gstring.glyphs, 0, sizeof (OTF_Glyph) * len);
for (i = 0, need_cmap = 0; i < len; i++)
{
base = g;
}
}
+ free (otf_gstring.glyphs);
return to;
simple_copy:
MGlyph temp = gstring->glyphs[from + i];
MLIST_APPEND1 (gstring, glyphs, temp, MERROR_FONT_OTF);
}
+ free (otf_gstring.glyphs);
return to;
}