mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
reference_ft_library() returns an owned FT_Library reference that the success paths hand to the FT_Face finalizer or the blob user-data destructor. Four early returns in hb_ft_face_create_from_file_or_fail, hb_ft_face_create_from_blob_or_fail and hb_ft_font_set_funcs returned without releasing it, pinning the static library on invalid input and OOM. Release it via destroy_ft_library() on each path.