Skip to content

Commit b58bfd9

Browse files
committed
[font] Minor move of code to silence gcc-12 warning
See mailing list discussion.
1 parent 602e0ca commit b58bfd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hb-font.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2596,12 +2596,14 @@ hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs,
25962596
return;
25972597
}
25982598

2599+
/* Since we pass it to two destroying functions. */
2600+
trampoline_reference (&trampoline->closure);
2601+
25992602
hb_font_funcs_set_nominal_glyph_func (ffuncs,
26002603
hb_font_get_nominal_glyph_trampoline,
26012604
trampoline,
26022605
trampoline_destroy);
26032606

2604-
trampoline_reference (&trampoline->closure);
26052607
hb_font_funcs_set_variation_glyph_func (ffuncs,
26062608
hb_font_get_variation_glyph_trampoline,
26072609
trampoline,

0 commit comments

Comments
 (0)