[subset-input] Fix leak

This commit is contained in:
Behdad Esfahbod 2023-01-12 12:55:47 -07:00
parent c52810529e
commit d5b826fd09
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ struct hb_subset_input_t
~hb_subset_input_t ()
{
for (auto& set : sets_iter ())
set = hb::shared_ptr<hb_set_t> ();
#ifdef HB_EXPERIMENTAL_API
for (auto _ : name_table_overrides)
_.second.fini ();