From a830f085c849846f8441f5d92d4db36130ef71f8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 1 Jun 2023 20:37:29 -0600 Subject: [PATCH] [subset/glyf] Exact allocation --- src/OT/glyf/glyf.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 1a12d2bac..f11a913da 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -432,7 +432,7 @@ glyf::_populate_subset_glyphs (const hb_subset_plan_t *plan, { OT::glyf_accelerator_t glyf (plan->source); unsigned num_glyphs = plan->num_output_glyphs (); - if (!glyphs.resize (num_glyphs)) return false; + if (!glyphs.resize (num_glyphs, true, true)) return false; for (auto p : plan->glyph_map->iter ()) {