Commit 7f3499c3 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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

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

	* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
	the adjustments.  (#148089, Tommi Komulainen)
parent 0ca18d15
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
the adjustments. (#148089, Tommi Komulainen)
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
......
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
the adjustments. (#148089, Tommi Komulainen)
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
......
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
the adjustments. (#148089, Tommi Komulainen)
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
......
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
the adjustments. (#148089, Tommi Komulainen)
Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
......
......@@ -462,7 +462,8 @@ viewport_set_adjustment (GtkViewport *viewport,
if (!adjustment)
adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0,
0.0, 0.0, 0.0));
if (*adjustmentp)
g_object_unref (*adjustmentp);
*adjustmentp = adjustment;
g_object_ref (adjustment);
gtk_object_sink (GTK_OBJECT (adjustment));
......
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