diff --git a/src/hb-subset-input.hh b/src/hb-subset-input.hh index d5d9a10e5..89f3a38fd 100644 --- a/src/hb-subset-input.hh +++ b/src/hb-subset-input.hh @@ -86,6 +86,9 @@ struct hb_subset_input_t ~hb_subset_input_t () { + for (auto& set : sets_iter ()) + set = hb::shared_ptr (); + #ifdef HB_EXPERIMENTAL_API for (auto _ : name_table_overrides) _.second.fini ();