mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
GtkActionMuxer: Plug a memory leak
valgrind complained that we leak the primary_accels table.
This commit is contained in:
parent
4067d0623f
commit
0b88b869e6
@ -534,6 +534,8 @@ gtk_action_muxer_finalize (GObject *object)
|
|||||||
g_assert_cmpint (g_hash_table_size (muxer->observed_actions), ==, 0);
|
g_assert_cmpint (g_hash_table_size (muxer->observed_actions), ==, 0);
|
||||||
g_hash_table_unref (muxer->observed_actions);
|
g_hash_table_unref (muxer->observed_actions);
|
||||||
g_hash_table_unref (muxer->groups);
|
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)
|
G_OBJECT_CLASS (gtk_action_muxer_parent_class)
|
||||||
->finalize (object);
|
->finalize (object);
|
||||||
|
Loading…
Reference in New Issue
Block a user