mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[aat] Fix a leak
This commit is contained in:
parent
d6f5cbdd8c
commit
b57d2a2050
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue