mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Chain up to the parent's finalize virtual function.
2007-10-30 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkbuilder.c (gtk_builder_finalize): Chain up to the parent's finalize virtual function. svn path=/trunk/; revision=18952
This commit is contained in:
parent
5072e43bb2
commit
b2f4e11df3
@ -1,3 +1,8 @@
|
||||
2007-10-30 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkbuilder.c (gtk_builder_finalize): Chain up to the
|
||||
parent's finalize virtual function.
|
||||
|
||||
2007-10-28 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Allow
|
||||
|
@ -129,19 +129,22 @@ gtk_builder_init (GtkBuilder *builder)
|
||||
static void
|
||||
gtk_builder_finalize (GObject *object)
|
||||
{
|
||||
GtkBuilder *builder = GTK_BUILDER (object);
|
||||
GtkBuilderPrivate *priv = GTK_BUILDER (object)->priv;
|
||||
|
||||
g_free (builder->priv->domain);
|
||||
g_free (priv->domain);
|
||||
g_free (priv->current_root);
|
||||
g_free (priv->filename);
|
||||
|
||||
g_hash_table_destroy (priv->objects);
|
||||
g_hash_table_destroy (priv->delayed_properties);
|
||||
|
||||
g_free (builder->priv->current_root);
|
||||
g_hash_table_destroy (builder->priv->delayed_properties);
|
||||
builder->priv->delayed_properties = NULL;
|
||||
g_slist_foreach (builder->priv->signals, (GFunc)_free_signal_info, NULL);
|
||||
g_slist_free (builder->priv->signals);
|
||||
g_hash_table_destroy (builder->priv->objects);
|
||||
g_slist_foreach (builder->priv->root_objects, (GFunc)g_object_unref, NULL);
|
||||
g_slist_free (builder->priv->root_objects);
|
||||
g_free (builder->priv->filename);
|
||||
g_slist_foreach (priv->signals, (GFunc) _free_signal_info, NULL);
|
||||
g_slist_free (priv->signals);
|
||||
|
||||
g_slist_foreach (priv->root_objects, (GFunc) g_object_unref, NULL);
|
||||
g_slist_free (priv->root_objects);
|
||||
|
||||
G_OBJECT_CLASS (gtk_builder_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user