forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
0ca18d150f
commit
7f3499c3a7
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user