Fix test-subset-* leak issues
See also https://github.com/harfbuzz/harfbuzz/pull/1169
This commit is contained in:
parent
f6ebe1f4dc
commit
403019482b
|
@ -56,7 +56,13 @@ hb_subset_test_open_font (const char *font_path)
|
|||
char* path = g_strdup (font_path);
|
||||
#endif
|
||||
|
||||
return hb_face_create (hb_blob_create_from_file (path), 0);
|
||||
hb_blob_t* blob = hb_blob_create_from_file (path);
|
||||
hb_face_t* face = hb_face_create (blob, 0);
|
||||
hb_blob_destroy (blob);
|
||||
|
||||
g_free (path);
|
||||
|
||||
return face;
|
||||
}
|
||||
|
||||
static inline hb_subset_input_t *
|
||||
|
|
Loading…
Reference in New Issue