[cff2] Use exact-size vector allocation for blends

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

View File

@ -45,6 +45,7 @@ struct blend_arg_t : number_t
numValues = numValues_;
valueIndex = valueIndex_;
unsigned numBlends = blends_.length;
deltas.alloc (numBlends, true); /* Exact-size allocation. */
if (unlikely (!deltas.resize (numBlends)))
return;
for (unsigned int i = 0; i < numBlends; i++)