Don't leak the icon source.

Mon Aug  9 00:13:03 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
	leak the icon source.
This commit is contained in:
Matthias Clasen 2004-08-09 04:13:36 +00:00 committed by Matthias Clasen
parent fbc0b76739
commit ecf2d1070c
5 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
leak the icon source.
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't

View File

@ -1,3 +1,8 @@
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
leak the icon source.
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't

View File

@ -1,3 +1,8 @@
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
leak the icon source.
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't

View File

@ -1,3 +1,8 @@
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
leak the icon source.
Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't

View File

@ -1225,6 +1225,7 @@ icon_set_new_from_pixbufs (GList *pixbufs)
GtkIconSource *icon_source = gtk_icon_source_new ();
gtk_icon_source_set_pixbuf (icon_source, pixbuf);
gtk_icon_set_add_source (icon_set, icon_source);
gtk_icon_source_free (icon_source);
}
return icon_set;