Properly tracking references to GdkPixbuf objects

This commit is contained in:
Pierre Pronchery 2012-12-06 22:13:52 +01:00
parent 0b95786a3d
commit 1e198d509b

View File

@ -393,6 +393,7 @@ static void _refresh_type(Properties * properties, struct stat * lst)
pixbuf = helper->get_icon(helper->browser, properties->filename, type,
lst, NULL, iconsize);
gtk_image_set_from_pixbuf(GTK_IMAGE(properties->image), pixbuf);
g_object_unref(pixbuf);
if(type == NULL)
type = _("Unknown type");
gtk_label_set_text(GTK_LABEL(properties->type), type);