From 6d3b7931fdcae3e266b3b58e39ad7085783c0e0e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 10 Nov 2023 14:51:34 -0700 Subject: [PATCH] [subset-plan] Add a couple of allocs --- src/hb-subset-plan.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 354def1be..17be75bb3 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -902,9 +902,11 @@ _create_old_gid_to_new_gid_map (const hb_face_t *face, *num_glyphs = max_glyph + 1; } + reverse_glyph_map->alloc (reverse_glyph_map->get_population () + new_to_old_gid_list->length); + hb_iter (new_to_old_gid_list) | hb_sink (reverse_glyph_map) ; + glyph_map->alloc (glyph_map->get_population () + new_to_old_gid_list->length); + hb_iter (new_to_old_gid_list) | hb_map (&hb_codepoint_pair_t::reverse) | hb_sink (glyph_map)