[font] Minor move of code to silence gcc-12 warning

See mailing list discussion.
This commit is contained in:
Behdad Esfahbod 2022-05-16 11:21:45 -06:00
parent 602e0ca79d
commit b58bfd9818
1 changed files with 3 additions and 1 deletions

View File

@ -2596,12 +2596,14 @@ hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs,
return;
}
/* Since we pass it to two destroying functions. */
trampoline_reference (&trampoline->closure);
hb_font_funcs_set_nominal_glyph_func (ffuncs,
hb_font_get_nominal_glyph_trampoline,
trampoline,
trampoline_destroy);
trampoline_reference (&trampoline->closure);
hb_font_funcs_set_variation_glyph_func (ffuncs,
hb_font_get_variation_glyph_trampoline,
trampoline,