| commit | 29ad9304e2b0cd84fbf125dfa907cd20d141fc70 | [log] [tgz] |
|---|---|---|
| author | Behdad Esfahbod <behdad@behdad.org> | Sun Jul 30 17:06:25 2023 -0600 |
| committer | Behdad Esfahbod <behdad@behdad.org> | Sun Jul 30 17:06:25 2023 -0600 |
| tree | 940d9fc17e72cf0eb70da08c847a48b310ee1489 | |
| parent | a41368bd7a0bf14c54b311a4455f7fdc5aa2df4b [diff] |
[layout] Minor add prealloc
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index e6bd74b..7ee48f8 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc
@@ -1306,6 +1306,7 @@ const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index); unsigned int count = l.get_feature_indexes (0, nullptr, nullptr); + feature_map->alloc (count); for (unsigned int i = 0; i < count; i++) {