From a637c08d5af73b95e06a4234f1ca499437faffb9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 5 Apr 2025 15:01:54 -0600 Subject: [PATCH] [hb-subset] Fix leak --- util/hb-subset.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/hb-subset.cc b/util/hb-subset.cc index e221d882b..f91184619 100644 --- a/util/hb-subset.cc +++ b/util/hb-subset.cc @@ -245,7 +245,7 @@ parse_gids (const char *name G_GNUC_UNUSED, } static gboolean -parse_glyphs (const char *name G_GNUC_UNUSED, +parse_glyphs (const char *name, const char *arg, gpointer data, GError **error G_GNUC_UNUSED) @@ -308,7 +308,7 @@ parse_glyphs (const char *name G_GNUC_UNUSED, } static gboolean -parse_text (const char *name G_GNUC_UNUSED, +parse_text (const char *name, const char *arg, gpointer data, GError **error G_GNUC_UNUSED) @@ -342,7 +342,7 @@ parse_text (const char *name G_GNUC_UNUSED, } static gboolean -parse_unicodes (const char *name G_GNUC_UNUSED, +parse_unicodes (const char *name, const char *arg, gpointer data, GError **error) @@ -809,7 +809,7 @@ parse_file_for (const char *name, } while (!feof (fp)); - g_string_free (gs, false); + g_string_free (gs, true); fclose (fp);