[cff2] Use exact-size vector allocation for blends
This commit is contained in:
parent
92e5933ee6
commit
3d4659beaa
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue