summaryrefslogtreecommitdiff
path: root/gtk/gtkcomposetable.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-11-17 23:21:19 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-11-18 00:04:23 -0500
commit95fc5109bbcfdb8c991d3c447916d6094e6d40bb (patch)
tree07b95e02072cd71b1eea85bfd0767d7eb6fc52bd /gtk/gtkcomposetable.c
parentce57150203f8b8fa4527984f178cac8496d8afa9 (diff)
downloadgtk+-95fc5109bbcfdb8c991d3c447916d6094e6d40bb.tar.gz
composetable: Fix a memory leak
Pointed out by clang.
Diffstat (limited to 'gtk/gtkcomposetable.c')
-rw-r--r--gtk/gtkcomposetable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c
index 0a4f8fd750..37a70ec6a6 100644
--- a/gtk/gtkcomposetable.c
+++ b/gtk/gtkcomposetable.c
@@ -963,6 +963,7 @@ parser_get_compose_table (GtkComposeParser *parser)
if (char_data->len >= 0x8000)
{
g_warning ("GTK can't handle compose tables this large (%s)", parser->compose_file ? parser->compose_file : "");
+ g_free (data);
g_string_free (char_data, TRUE);
return NULL;
}