[subset] fix leaked font in glyf::subset(...)
This commit is contained in:
parent
dcce53ddcb
commit
81640fdffe
|
@ -106,14 +106,15 @@ struct glyf
|
||||||
}
|
}
|
||||||
|
|
||||||
if (font)
|
if (font)
|
||||||
|
{
|
||||||
_free_compiled_subset_glyphs (&glyphs);
|
_free_compiled_subset_glyphs (&glyphs);
|
||||||
|
hb_font_destroy (font);
|
||||||
|
}
|
||||||
|
|
||||||
if (unlikely (c->serializer->in_error ())) return_trace (false);
|
if (unlikely (c->serializer->in_error ())) return_trace (false);
|
||||||
return_trace (c->serializer->check_success (glyf_impl::_add_loca_and_head (c->plan,
|
return_trace (c->serializer->check_success (glyf_impl::_add_loca_and_head (c->plan,
|
||||||
padded_offsets,
|
padded_offsets,
|
||||||
use_short_loca)));
|
use_short_loca)));
|
||||||
|
|
||||||
hb_font_destroy (font);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue