mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
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:
parent
3d94a353eb
commit
5169423a9b
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user