summaryrefslogtreecommitdiff
path: root/capplets/common/theme-thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/common/theme-thumbnail.c')
-rw-r--r--capplets/common/theme-thumbnail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index 9cd047f5..198cb4de 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -213,7 +213,11 @@ create_folder_icon (char *icon_theme_name)
if (folder_icon_info != NULL)
{
folder_icon = gtk_icon_info_load_icon (folder_icon_info, NULL);
+#if GTK_CHECK_VERSION (3, 8, 0)
+ g_object_unref (folder_icon_info);
+#else
gtk_icon_info_free (folder_icon_info);
+#endif
}
g_object_unref (icon_theme);