forked from AuroraMiddleware/gtk
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:
parent
f97f0c694d
commit
0ca18d150f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user