summaryrefslogtreecommitdiff
path: root/gtk/gtkactionmuxer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-28 22:37:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-28 22:37:14 -0400
commit0b88b869e624df9153d49c23ae0e24d3e899abf1 (patch)
tree2ff4e0aabad691ef0d15fc6c53eaf3850899f986 /gtk/gtkactionmuxer.c
parent4067d0623fa4ea550c99ab790c1239620bad5fda (diff)
downloadgtk+-0b88b869e624df9153d49c23ae0e24d3e899abf1.tar.gz
GtkActionMuxer: Plug a memory leak
valgrind complained that we leak the primary_accels table.
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r--gtk/gtkactionmuxer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index 09cb1b3741..a1dc9f8110 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -534,6 +534,8 @@ gtk_action_muxer_finalize (GObject *object)
g_assert_cmpint (g_hash_table_size (muxer->observed_actions), ==, 0);
g_hash_table_unref (muxer->observed_actions);
g_hash_table_unref (muxer->groups);
+ if (muxer->primary_accels)
+ g_hash_table_unref (muxer->primary_accels);
G_OBJECT_CLASS (gtk_action_muxer_parent_class)
->finalize (object);