[subset-input] Simplify destruction

This commit is contained in:
Behdad Esfahbod 2023-01-12 13:02:30 -07:00
parent d5b826fd09
commit 32866a331e
1 changed files with 3 additions and 4 deletions

View File

@ -86,12 +86,11 @@ struct hb_subset_input_t
~hb_subset_input_t () ~hb_subset_input_t ()
{ {
for (auto& set : sets_iter ()) sets.~sets_t ();
set = hb::shared_ptr<hb_set_t> ();
#ifdef HB_EXPERIMENTAL_API #ifdef HB_EXPERIMENTAL_API
for (auto _ : name_table_overrides) for (auto _ : name_table_overrides.values ())
_.second.fini (); _.fini ();
#endif #endif
} }