Unref the icon_theme after using it.

2003-05-03  Kjartan Maraas  <kmaraas@gnome.org>

	* theme-thumbnail.c: (create_image): Unref the
	icon_theme after using it.
This commit is contained in:
Kjartan Maraas 2003-05-03 09:35:03 +00:00 committed by Kjartan Maraas
parent b3ac06e5d1
commit 07514ea76c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-05-03 Kjartan Maraas <kmaraas@gnome.org>
* theme-thumbnail.c: (create_image): Unref the
icon_theme after using it.
2003-05-02 Kjartan Maraas <kmaraas@gnome.org>
* theme-properties.glade: Add a colon for consistency.

View file

@ -206,7 +206,9 @@ create_image (ThemeThumbnailData *theme_thumbnail_data,
if (folder_icon_name == NULL) {
folder_icon_name = gnome_icon_theme_lookup_icon (icon_theme, "gnome-fs-directory", 48, NULL, NULL);
}
g_object_unref (icon_theme);
if (folder_icon_name != NULL)
{
folder_icon = gdk_pixbuf_new_from_file (folder_icon_name, NULL);