[subset] fix leaked font in glyf::subset(...)

This commit is contained in:
Garret Rieger authored and Behdad Esfahbod committed 2022-11-23 13:41:52 -07:00
1 parent dcce53ddcb
commit 81640fdffe
1 file changed
+3 -2
+3 -2
View File
@@ -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