diff --git a/src/hb-ot-name-table.hh b/src/hb-ot-name-table.hh index 3d7b73119..14ac4ef2c 100644 --- a/src/hb-ot-name-table.hh +++ b/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++) {