summaryrefslogtreecommitdiff
path: root/plugins/filebrowser
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/filebrowser')
-rw-r--r--plugins/filebrowser/pluma-file-browser-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-utils.c b/plugins/filebrowser/pluma-file-browser-utils.c
index 8c1b6a3b..8ffabfbe 100644
--- a/plugins/filebrowser/pluma-file-browser-utils.c
+++ b/plugins/filebrowser/pluma-file-browser-utils.c
@@ -94,7 +94,11 @@ pluma_file_browser_utils_pixbuf_from_icon (GIcon * icon,
return NULL;
ret = gtk_icon_info_load_icon (info, NULL);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (info);
+#else
gtk_icon_info_free (info);
+#endif
return ret;
}