From d5b826fd0910f68dcdc4c6f6e990c7b188a95255 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Jan 2023 12:55:47 -0700 Subject: [PATCH] [subset-input] Fix leak --- src/hb-subset-input.hh | 3 +++ 1 file changed, 3 insertions(+) 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 ();