diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 9829274a5..f267a82a8 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -349,7 +349,7 @@ hb_subset_plan_create (hb_face_t *face, input->glyphs, !input->drop_tables->has (HB_OT_TAG_GSUB), !input->drop_tables->has (HB_OT_TAG_GPOS), - !input->drop_tables->has (HB_OT_TAG_GDEF)); + !input->drop_tables->has (HB_OT_TAG_GDEF)); _create_old_gid_to_new_gid_map (face, input->retain_gids, diff --git a/util/options-subset.cc b/util/options-subset.cc index 6d68f3b43..f1406c025 100644 --- a/util/options-subset.cc +++ b/util/options-subset.cc @@ -63,18 +63,18 @@ parse_gids (const char *name G_GNUC_UNUSED, hb_codepoint_t end_code = strtoul (s, &p, 10); if (s[0] == '-' || errno || s == p) { - hb_set_destroy (gids); - g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Failed parsing gids values at: '%s'", s); - return false; + hb_set_destroy (gids); + g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, + "Failed parsing gids values at: '%s'", s); + return false; } if (end_code < start_code) { - hb_set_destroy (gids); - g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Invalid gids range value %u-%u", start_code, end_code); - return false; + hb_set_destroy (gids); + g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, + "Invalid gids range value %u-%u", start_code, end_code); + return false; } hb_set_add_range (gids, start_code, end_code); }