Commit 0ca18d15 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent f97f0c69
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
......
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
......
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
......
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
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment