diff options
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-utils.c | 4 | ||||
-rw-r--r-- | pluma/pluma-tab.c | 4 |
2 files changed, 8 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; } diff --git a/pluma/pluma-tab.c b/pluma/pluma-tab.c index 723dfaf1..7ceac758 100644 --- a/pluma/pluma-tab.c +++ b/pluma/pluma-tab.c @@ -1847,7 +1847,11 @@ get_icon (GtkIconTheme *theme, return get_stock_icon (theme, GTK_STOCK_FILE, size); pixbuf = gtk_icon_info_load_icon (icon_info, NULL); +#if GTK_CHECK_VERSION (3, 0, 0) + g_object_unref (icon_info); +#else gtk_icon_info_free (icon_info); +#endif if (pixbuf == NULL) return get_stock_icon (theme, GTK_STOCK_FILE, size); |