[fontations] Fix life-cycle double-free

This commit is contained in:
Behdad Esfahbod 2025-03-04 18:51:10 -07:00 committed by Khaled Hosny
parent e054db4ae2
commit c4932fa57a

View file

@ -376,8 +376,4 @@ pub extern "C" fn hb_fontations_font_set_funcs(font: *mut hb_font_t) {
unsafe {
hb_font_set_funcs(font, ffuncs, data_ptr, Some(_hb_fontations_data_destroy));
}
unsafe {
hb_font_funcs_destroy(ffuncs);
}
}