From 9f77a0c1ff02765862d6d2bfed6b9aab78db6fff Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Tue, 30 Mar 2021 14:10:45 -0700 Subject: [PATCH] [subset] use hb_set_clear to avoid calling clear() on null pool set. --- src/hb-ot-layout-gsubgpos.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index abc60e68e..33b78b1fb 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -116,8 +116,7 @@ struct hb_closure_context_t : } } - if (done_lookups_glyph_set->get (lookup_index)->get_population ()) - done_lookups_glyph_set->get (lookup_index)->clear (); + hb_set_clear (done_lookups_glyph_set->get (lookup_index)); } hb_set_t *covered_glyph_set = done_lookups_glyph_set->get (lookup_index);