summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-16 17:46:48 +0200
committerraveit65 <[email protected]>2020-07-23 13:33:01 +0200
commit7c82385341a1b5db43a4bf5cef81e133d07618e2 (patch)
treee6cd5c2a8bbe5986ed1325ef12b3088632dbe16a
parentd765a39b9d48886a3d16d11d62bd79c7e1131577 (diff)
downloadmate-panel-7c82385341a1b5db43a4bf5cef81e133d07618e2.tar.bz2
mate-panel-7c82385341a1b5db43a4bf5cef81e133d07618e2.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 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);