From 25ae262342f5f0011bd43a824ab41803f4233049 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 15 Jan 2016 16:33:41 +0300 Subject: [GTK+3] common: use g_object_unref instead of deprecated function --- capplets/common/theme-thumbnail.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1