Fix a memleak

This commit is contained in:
Matthias Clasen 2006-07-21 05:02:27 +00:00
parent 53a94e60c9
commit 3ddd7aef5a
3 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2006-07-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
leak the adjustments. (#348094, Chris Wilson)
* gtk/gtknotebook.c (gtk_notebook_stop_reorder): Unset
the during_reorder flag. (#348049, Sven Herzberg, patch
by Benjamin Otte)

View File

@ -1,5 +1,8 @@
2006-07-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
leak the adjustments. (#348094, Chris Wilson)
* gtk/gtknotebook.c (gtk_notebook_stop_reorder): Unset
the during_reorder flag. (#348049, Sven Herzberg, patch
by Benjamin Otte)

View File

@ -948,6 +948,18 @@ gtk_icon_view_destroy (GtkObject *object)
}
remove_scroll_timeout (icon_view);
if (icon_view->priv->hadjustment != NULL)
{
g_object_unref (icon_view->priv->hadjustment);
icon_view->priv->hadjustment = NULL;
}
if (icon_view->priv->vadjustment != NULL)
{
g_object_unref (icon_view->priv->vadjustment);
icon_view->priv->vadjustment = NULL;
}
(* GTK_OBJECT_CLASS (gtk_icon_view_parent_class)->destroy) (object);
}