From 0b88b869e624df9153d49c23ae0e24d3e899abf1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 Jun 2014 22:37:14 -0400 Subject: [PATCH] GtkActionMuxer: Plug a memory leak valgrind complained that we leak the primary_accels table. --- gtk/gtkactionmuxer.c | 2 ++ 1 file changed, 2 insertions(+) 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);