mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
[fontations] Fix life-cycle double-free
This commit is contained in:
1 parent
e054db4ae2
commit
c4932fa57a
1 file changed
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user