From c4932fa57a17f50b8e4f9b538b2c467c4cfaefcc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Mar 2025 18:51:10 -0700 Subject: [PATCH] [fontations] Fix life-cycle double-free --- src/fontations/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index a1e2e0f8c..7dd5736f4 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -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); - } }