mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[subset] fix memory leak.
Fixes fuzzer issue https://oss-fuzz.com/testcase-detail/6169920089227264
This commit is contained in:
1 parent
453ded0539
commit
2cd81fdfb6
2 files changed
+2
-1
No files matched your search
@@ -386,11 +386,12 @@ _collect_layout_variation_indices (hb_subset_plan_t* plan)
|
||||
if (collect_delta)
|
||||
{
|
||||
if (unlikely (!plan->check_success (font = _get_hb_font_with_variations (plan)))) {
|
||||
hb_font_destroy (font);
|
||||
gdef.destroy ();
|
||||
gpos.destroy ();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (gdef->has_var_store ())
|
||||
{
|
||||
var_store = &(gdef->get_var_store ());
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user