[test] Pass closure to hb_font_set_glyph_func()

Exercises fix in c335fd7986
This commit is contained in:
Behdad Esfahbod 2016-02-25 11:20:05 +09:00
parent e23cf902e9
commit dd8598c1c7
1 changed files with 1 additions and 1 deletions

View File

@ -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);