From ca9321f5991eecc2b7e5ff7412d0da1d54fc9f73 Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Mon, 13 Feb 2017 02:01:16 -0800 Subject: [PATCH] Fix g_free which should be g_object_unref in file browser https://github.com/GNOME/gedit/commit/331af4bdda8c200f19ed8ef8a05cb548084ba83f --- plugins/filebrowser/xed-file-browser-store.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/filebrowser/xed-file-browser-store.c b/plugins/filebrowser/xed-file-browser-store.c index dbd083c..7942b42 100644 --- a/plugins/filebrowser/xed-file-browser-store.c +++ b/plugins/filebrowser/xed-file-browser-store.c @@ -3013,7 +3013,11 @@ mount_cb (GFile *file, g_object_unref (mount_info->operation); g_object_unref (mount_info->cancellable); - g_free (mount_info->virtual_root); + + if (mount_info->virtual_root) + { + g_object_unref (mount_info->virtual_root); + } g_free (mount_info); }