Don't leak the icon pixbuf after setting it to the image menu item. Found

2007-01-08  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
	Don't leak the icon pixbuf after setting it to the image menu
	item.  Found by Paolo Borelli.

svn path=/trunk/; revision=17119
This commit is contained in:
Emmanuele Bassi 2007-01-08 16:47:19 +00:00 committed by Emmanuele Bassi
parent 3d94a353eb
commit 5169423a9b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-01-08 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
Don't leak the icon pixbuf after setting it to the image menu
item. Found by Paolo Borelli.
2007-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't

View File

@ -933,6 +933,7 @@ gtk_recent_chooser_menu_create_item (GtkRecentChooserMenu *menu,
image = gtk_image_new_from_pixbuf (icon);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
g_object_unref (icon);
}
g_signal_connect (item, "activate",