Don't leak a pixbuf. (#323024, Paolo Borelli)
2005-12-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak a pixbuf. (#323024, Paolo Borelli)
This commit is contained in:
committed by
Matthias Clasen
parent
7b799ca14d
commit
3fac9f99fc
@@ -1,3 +1,8 @@
|
||||
2005-12-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
|
||||
a pixbuf. (#323024, Paolo Borelli)
|
||||
|
||||
2005-12-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2005-12-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
|
||||
a pixbuf. (#323024, Paolo Borelli)
|
||||
|
||||
2005-12-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
|
||||
|
||||
@@ -548,12 +548,16 @@ clone_image_menu_size (GtkImage *image, GtkSettings *settings)
|
||||
&width, &height))
|
||||
{
|
||||
GdkPixbuf *src_pixbuf, *dest_pixbuf;
|
||||
GtkWidget *image;
|
||||
|
||||
src_pixbuf = gtk_image_get_pixbuf (image);
|
||||
dest_pixbuf = gdk_pixbuf_scale_simple (src_pixbuf, width, height,
|
||||
GDK_INTERP_BILINEAR);
|
||||
|
||||
return gtk_image_new_from_pixbuf (dest_pixbuf);
|
||||
image = gtk_image_new_from_pixbuf (dest_pixbuf);
|
||||
g_object_unref (dest_pixbuf);
|
||||
|
||||
return image;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user