[aat] Fix a leak

This commit is contained in:
Behdad Esfahbod 2025-03-13 11:19:48 -06:00
parent d6f5cbdd8c
commit b57d2a2050

View file

@ -66,6 +66,14 @@ struct hb_aat_scratch_t
o.buffer_glyph_set.set_relaxed (nullptr);
return *this;
}
~hb_aat_scratch_t ()
{
auto *s = buffer_glyph_set.get_relaxed ();
if (unlikely (!s))
return;
s->fini ();
hb_free (s);
}
hb_bit_set_t *create_buffer_glyph_set () const
{