Don't leak a reference to the pixbufs.

Sun Aug  8 23:46:20 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
	leak a reference to the pixbufs.
This commit is contained in:
Matthias Clasen 2004-08-09 03:55:00 +00:00 committed by Matthias Clasen
parent 0c42eed2de
commit fbc0b76739
5 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
leak a reference to the pixbufs.
Sun Aug 8 23:36:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref

View File

@ -1,3 +1,8 @@
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
leak a reference to the pixbufs.
Sun Aug 8 23:36:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref

View File

@ -1,3 +1,8 @@
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
leak a reference to the pixbufs.
Sun Aug 8 23:36:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref

View File

@ -1,3 +1,8 @@
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
leak a reference to the pixbufs.
Sun Aug 8 23:36:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref

View File

@ -926,7 +926,8 @@ shortcuts_reload_icons (GtkFileChooserDefault *impl)
gtk_list_store_set (impl->shortcuts_model, &iter,
SHORTCUTS_COL_PIXBUF, pixbuf,
-1);
g_object_unref (pixbuf);
next_iter:
i++;
} while (gtk_tree_model_iter_next (GTK_TREE_MODEL (impl->shortcuts_model),&iter));