[subset] use hb_set_clear to avoid calling clear() on null pool set.

This commit is contained in:
Garret Rieger 2021-03-30 14:10:45 -07:00 committed by Behdad Esfahbod
parent 752e393ad2
commit 9f77a0c1ff
1 changed files with 1 additions and 2 deletions

View File

@ -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);