From ea72ffe30593cc4878d55a1c573a975a3962483a Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 16 Jul 2020 17:46:48 +0200 Subject: panel-util: Fix leaking root GFile --- mate-panel/panel-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c index 8d5f2848..f23fc7ac 100644 --- a/mate-panel/panel-util.c +++ b/mate-panel/panel-util.c @@ -844,6 +844,7 @@ panel_util_get_file_display_name_if_mount (GFile *file) compare = g_mount_get_root (mount); if (!ret && g_file_equal (file, compare)) ret = g_mount_get_name (mount); + g_object_unref (compare); g_object_unref (mount); } g_list_free (mounts); -- cgit v1.2.1