Don't leak the adjustments. (#148073, Tommi Komulainen)

Wed Jul 21 21:20:21 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
	the adjustments.  (#148073, Tommi Komulainen)
This commit is contained in:
Matthias Clasen 2004-07-22 01:22:54 +00:00 committed by Matthias Clasen
parent f97f0c694d
commit 0ca18d150f
5 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
the adjustments. (#148073, Tommi Komulainen)
Wed Jul 21 21:04:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the

View File

@ -1,3 +1,8 @@
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
the adjustments. (#148073, Tommi Komulainen)
Wed Jul 21 21:04:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the

View File

@ -1,3 +1,8 @@
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
the adjustments. (#148073, Tommi Komulainen)
Wed Jul 21 21:04:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the

View File

@ -1,3 +1,8 @@
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
the adjustments. (#148073, Tommi Komulainen)
Wed Jul 21 21:04:50 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the

View File

@ -1362,6 +1362,17 @@ gtk_tree_view_destroy (GtkObject *object)
gtk_tree_view_set_model (tree_view, NULL);
if (tree_view->priv->hadjustment)
{
g_object_unref (tree_view->priv->hadjustment);
tree_view->priv->hadjustment = NULL;
}
if (tree_view->priv->vadjustment)
{
g_object_unref (tree_view->priv->vadjustment);
tree_view->priv->vadjustment = NULL;
}
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}