From 3947cedd09a2386be5774400ac0b582d8173d078 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 Jan 2023 14:47:47 -0700 Subject: [PATCH] Revert "[gsubgpos] Cache pos_glyphs allocation in closure" This reverts commit 3961cc46bf438947b19063cb7e735247358f1d4f. This was wrong... --- src/hb-ot-layout-gsubgpos.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 6f34bc6f0..412e6a893 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -196,8 +196,6 @@ struct hb_closure_context_t : active_glyphs_stack.reset (); } - public: - hb_set_t pos_glyphs; // Cache private: hb_map_t *done_lookups_glyph_count; hb_hashmap_t> *done_lookups_glyph_set; @@ -1548,7 +1546,7 @@ static void context_closure_recurse_lookups (hb_closure_context_t *c, void *cache) { hb_set_t covered_seq_indicies; - hb_set_t &pos_glyphs = c->pos_glyphs; + hb_set_t pos_glyphs; for (unsigned int i = 0; i < lookupCount; i++) { unsigned seqIndex = lookupRecord[i].sequenceIndex;