[subset] fix nullptr deref.
This commit is contained in:
parent
9a3537e5f6
commit
c6adb90a27
|
@ -107,10 +107,12 @@ struct hb_closure_context_t :
|
|||
done_lookups_glyph_count->set (lookup_index, glyphs->get_population ());
|
||||
|
||||
if (!done_lookups_glyph_set->get (lookup_index))
|
||||
{
|
||||
done_lookups_glyph_set->set (lookup_index, hb_set_create ());
|
||||
|
||||
} else {
|
||||
done_lookups_glyph_set->get (lookup_index)->clear ();
|
||||
}
|
||||
}
|
||||
|
||||
hb_set_t *covered_glyph_set = done_lookups_glyph_set->get (lookup_index);
|
||||
if (parent_active_glyphs ()->is_subset (covered_glyph_set))
|
||||
|
|
Loading…
Reference in New Issue