[cff2] Another exact-size allocation

This commit is contained in:
Behdad Esfahbod 2022-12-31 12:40:07 -07:00
parent 3d4659beaa
commit b803024caf
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ struct cff2_cs_interp_env_t : cs_interp_env_t<ELEM, CFF2Subrs>
region_count = varStore->varStore.get_region_index_count (get_ivs ());
if (do_blend)
{
scalars.alloc (region_count, true);
if (unlikely (!scalars.resize (region_count)))
SUPER::set_error ();
else