From dd8598c1c7f29fc92253b0cd4e856c1941b1d0c0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 25 Feb 2016 11:20:05 +0900 Subject: [PATCH] [test] Pass closure to hb_font_set_glyph_func() Exercises fix in c335fd7986fe360ab8e1c032c9b988d0d30511eb --- test/api/test-shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api/test-shape.c b/test/api/test-shape.c index eb244072a..c274f0f7e 100644 --- a/test/api/test-shape.c +++ b/test/api/test-shape.c @@ -101,7 +101,7 @@ test_shape (void) ffuncs = hb_font_funcs_create (); hb_font_funcs_set_glyph_h_advance_func (ffuncs, glyph_h_advance_func, NULL, NULL); - hb_font_funcs_set_glyph_func (ffuncs, glyph_func, NULL, NULL); + hb_font_funcs_set_glyph_func (ffuncs, glyph_func, malloc (10), free); hb_font_funcs_set_glyph_h_kerning_func (ffuncs, glyph_h_kerning_func, NULL, NULL); hb_font_set_funcs (font, ffuncs, NULL, NULL); hb_font_funcs_destroy (ffuncs);