[name] Pre-allocate array

pull/1319/head
Behdad Esfahbod 6 years ago
parent c2aa409537
commit c783d36324
  1. 1
      src/hb-ot-name-table.hh

@ -170,6 +170,7 @@ struct name
this->table->count);
this->names.init ();
this->names.alloc (all_names.len);
for (uint16_t i = 0; i < all_names.len; i++)
{

Loading…
Cancel
Save