From f6ebe1f4dc95a7c4b3a0af23086873a11867c1d9 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 22 Sep 2018 17:05:52 +0330 Subject: [PATCH] Fix test-ot-math leak issue See also https://github.com/harfbuzz/harfbuzz/pull/1169 --- test/api/test-ot-math.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/api/test-ot-math.c b/test/api/test-ot-math.c index d071c88..7f50015 100644 --- a/test/api/test-ot-math.c +++ b/test/api/test-ot-math.c @@ -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(); } -- 2.7.4