diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-06-15 23:33:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-06-15 23:33:51 -0400 |
commit | 5707e81c81de65af7b63ccf8529fc394e9f2b325 (patch) | |
tree | 5aa00e0ed492fa4d347d4a46e9aba42177f371e8 /gtk/gtkbuilder.c | |
parent | da208f89d5c2722df372cd7f91d6046092eb9e45 (diff) | |
download | gtk+-5707e81c81de65af7b63ccf8529fc394e9f2b325.tar.gz |
GtkBuilder: don't leak callbacks
This was noticed while running the testsuite under valgrind.
Diffstat (limited to 'gtk/gtkbuilder.c')
-rw-r--r-- | gtk/gtkbuilder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index 326b5a149f..78425650f2 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -343,6 +343,8 @@ gtk_builder_finalize (GObject *object) g_free (priv->resource_prefix); g_hash_table_destroy (priv->objects); + if (priv->callbacks) + g_hash_table_destroy (priv->callbacks); g_slist_foreach (priv->signals, (GFunc) _free_signal_info, NULL); g_slist_free (priv->signals); |