GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

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

Don't leak models. (#148128, Tommi Komulainen)

Wed Jul 21 22:17:06 2004  Matthias Clasen  <maclas@gmx.de>

	* tests/testcombo.c (main): Don't leak models.  (#148128,
	Tommi Komulainen)
parent 7f3499c3
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
Tommi Komulainen)
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
......
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
Tommi Komulainen)
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
......
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
Tommi Komulainen)
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
......
Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
* tests/testcombo.c (main): Don't leak models. (#148128,
Tommi Komulainen)
Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
......
......@@ -110,6 +110,8 @@ create_combo_box_grid_demo ()
0, create_color_pixbuf ("magenta"),
-1);
g_object_unref (store);
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
return combo;
......@@ -229,13 +231,14 @@ main (int argc, char **argv)
GtkWidget *tmp, *boom;
GtkCellRenderer *renderer;
GdkPixbuf *pixbuf;
GtkTreeModel *model;
GValue value = {0, };
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_set_border_width (GTK_CONTAINER (window), 5);
g_signal_connect (window, "delete_event", gtk_main_quit, NULL);
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
mainbox = gtk_vbox_new (FALSE, 2);
gtk_container_add (GTK_CONTAINER (window), mainbox);
......@@ -287,7 +290,9 @@ main (int argc, char **argv)
gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
gtk_container_add (GTK_CONTAINER (tmp), boom);
combobox = gtk_combo_box_new_with_model (create_blaat ());
model = create_blaat ();
combobox = gtk_combo_box_new_with_model (model);
g_object_unref (model);
gtk_container_add (GTK_CONTAINER (boom), combobox);
renderer = gtk_cell_renderer_pixbuf_new ();
......
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