mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-12 16:23:01 +00:00
[aat-map] Micro-optimize a malloc
This commit is contained in:
parent
3e27038fca
commit
e99e6538d9
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ hb_aat_map_builder_t::compile (hb_aat_map_t &m)
|
|||
|
||||
/* Sort features by start/end events. */
|
||||
hb_vector_t<feature_event_t> feature_events;
|
||||
feature_events.alloc (features.length * 2 + 1, true);
|
||||
for (unsigned int i = 0; i < features.length; i++)
|
||||
{
|
||||
auto &feature = features.arrayZ[i];
|
||||
|
|
Loading…
Add table
Reference in a new issue