[subset] avoid calling clear on null pool set.

This commit is contained in:
Garret Rieger 2021-03-29 17:23:33 -07:00 committed by Behdad Esfahbod
parent 9ed5f04a70
commit 752e393ad2
2 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ struct hb_closure_context_t :
}
}
done_lookups_glyph_set->get (lookup_index)->clear ();
if (done_lookups_glyph_set->get (lookup_index)->get_population ())
done_lookups_glyph_set->get (lookup_index)->clear ();
}
hb_set_t *covered_glyph_set = done_lookups_glyph_set->get (lookup_index);