summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-16 17:46:48 +0200
committerraveit65 <[email protected]>2020-07-23 13:30:35 +0200
commitea72ffe30593cc4878d55a1c573a975a3962483a (patch)
tree4736ef46115fbc9e438cf992099d034602d2f3d4
parent39e4e67594e24cfed75d44ab1abfd637ba20080e (diff)
downloadmate-panel-ea72ffe30593cc4878d55a1c573a975a3962483a.tar.bz2
mate-panel-ea72ffe30593cc4878d55a1c573a975a3962483a.tar.xz
panel-util: Fix leaking root GFile
-rw-r--r--mate-panel/panel-util.c1
1 files changed, 1 insertions, 0 deletions
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);