[fontations] Fix life-cycle double-free

This commit is contained in:
Behdad Esfahbod authored and Khaled Hosny committed 2025-03-06 04:23:24 +02:00
1 parent e054db4ae2
commit c4932fa57a
1 file changed
-4
-4
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);
}
}