Commit eaadb3ad authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't leak tree model and tree row reference. (#148125, Crispin Flowerday)

Wed Jul 21 22:24:10 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
	tree model and tree row reference.  (#148125, Crispin Flowerday)
parent f0505514
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
tree model and tree row reference. (#148125, Crispin Flowerday)
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
......
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
tree model and tree row reference. (#148125, Crispin Flowerday)
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
......
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
tree model and tree row reference. (#148125, Crispin Flowerday)
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
......
Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
tree model and tree row reference. (#148125, Crispin Flowerday)
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
......
......@@ -293,7 +293,15 @@ gtk_cell_view_style_set (GtkWidget *widget,
static void
gtk_cell_view_finalize (GObject *object)
{
gtk_cell_view_cell_layout_clear (GTK_CELL_LAYOUT (object));
GtkCellView *cellview = GTK_CELL_VIEW (object);
gtk_cell_view_cell_layout_clear (GTK_CELL_LAYOUT (cellview));
if (cellview->priv->model)
g_object_unref (cellview->priv->model);
if (cellview->priv->displayed_row)
gtk_tree_row_reference_free (cellview->priv->displayed_row);
if (G_OBJECT_CLASS (parent_class)->finalize)
(* G_OBJECT_CLASS (parent_class)->finalize) (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