[subset-plan] Simplify name_languages allocation

This commit is contained in:
Behdad Esfahbod 2023-01-11 10:45:02 -07:00
parent e4ca0fe436
commit cfb48f91da
2 changed files with 2 additions and 3 deletions

View File

@ -843,7 +843,7 @@ hb_subset_plan_create_or_fail (hb_face_t *face,
plan->unicode_to_new_gid_list.init ();
plan->name_ids = hb_set_copy (input->sets.name_ids);
plan->name_languages = hb_set_copy (input->sets.name_languages);
plan->name_languages = *input->sets.name_languages;
plan->layout_features = *input->sets.layout_features;
plan->layout_scripts = *input->sets.layout_scripts;
plan->glyphs_requested = hb_set_copy (input->sets.glyphs);

View File

@ -50,7 +50,6 @@ struct hb_subset_plan_t
{
hb_set_destroy (unicodes);
hb_set_destroy (name_ids);
hb_set_destroy (name_languages);
hb_set_destroy (glyphs_requested);
hb_set_destroy (drop_tables);
hb_set_destroy (no_subset_tables);
@ -119,7 +118,7 @@ struct hb_subset_plan_t
hb_set_t *name_ids;
// name_languages we would like to retain
hb_set_t *name_languages;
hb_set_t name_languages;
//layout features which will be preserved
hb_set_t layout_features;