mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
[subset] fix leaked font in glyf::subset(...)
This commit is contained in:
1 parent
dcce53ddcb
commit
81640fdffe
1 file changed
+3
-2
+3
-2
@@ -106,14 +106,15 @@ struct glyf
|
||||
}
|
||||
|
||||
if (font)
|
||||
{
|
||||
_free_compiled_subset_glyphs (&glyphs);
|
||||
hb_font_destroy (font);
|
||||
}
|
||||
|
||||
if (unlikely (c->serializer->in_error ())) return_trace (false);
|
||||
return_trace (c->serializer->check_success (glyf_impl::_add_loca_and_head (c->plan,
|
||||
padded_offsets,
|
||||
use_short_loca)));
|
||||
|
||||
hb_font_destroy (font);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user