Fix test-ot-math leak issue

See also https://github.com/harfbuzz/harfbuzz/pull/1169
This commit is contained in:
Ebrahim Byagowi 2018-09-22 17:05:52 +03:30 committed by GitHub
parent 669ac81ac5
commit f6ebe1f4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,10 +100,14 @@ test_has_data (void)
hb_face = hb_face_get_empty ();
hb_font = hb_font_create (hb_face);
g_assert(!hb_ot_math_has_data (hb_face)); // MATH table not available
hb_font_destroy (hb_font);
hb_face_destroy (hb_face);
hb_font = hb_font_get_empty ();
hb_face = hb_font_get_face (hb_font);
g_assert(!hb_ot_math_has_data (hb_face)); // MATH table not available
hb_font_destroy (hb_font);
hb_face_destroy (hb_face);
cleanupFreeType();
}