From 7c82385341a1b5db43a4bf5cef81e133d07618e2 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 7389b321..a5fa4296 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