[cff2] Another exact-size allocation
This commit is contained in:
parent
3d4659beaa
commit
b803024caf
|
@ -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 ());
|
region_count = varStore->varStore.get_region_index_count (get_ivs ());
|
||||||
if (do_blend)
|
if (do_blend)
|
||||||
{
|
{
|
||||||
|
scalars.alloc (region_count, true);
|
||||||
if (unlikely (!scalars.resize (region_count)))
|
if (unlikely (!scalars.resize (region_count)))
|
||||||
SUPER::set_error ();
|
SUPER::set_error ();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue