aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-01-19 16:48:01 -0800
committerBehdad Esfahbod <behdad@behdad.org>2017-01-19 16:48:01 -0800
commit2f2ceee1853649d1b2ad4315a38cd9c07659932a (patch)
treef60c62071e86e758a714b3482556f588f811d119
parent2452543fdd383e62b8c4bc44b11bfd6796fc9963 (diff)
downloadharfbuzz_ng-2f2ceee1853649d1b2ad4315a38cd9c07659932a.tar.gz
Minor
-rw-r--r--test/api/test-ot-math.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/api/test-ot-math.c b/test/api/test-ot-math.c
index 049656a03..cfac10900 100644
--- a/test/api/test-ot-math.c
+++ b/test/api/test-ot-math.c
@@ -70,12 +70,13 @@ openFont(const char* fontFile)
if ((ft_error = FT_Set_Char_Size (ft_face, 2000, 1000, 0, 0)))
abort();
hb_font = hb_ft_font_create (ft_face, NULL);
- hb_face = hb_ft_face_create_cached(ft_face);
+ hb_face = hb_face_reference (hb_font_get_face (hb_font));
}
static inline void
closeFont (void)
{
+ hb_face_destroy (hb_face);
hb_font_destroy (hb_font);
FT_Done_Face (ft_face);
}