[gedit] Fix g_free which should be g_object_unref in file browser



commit 331af4bdda8c200f19ed8ef8a05cb548084ba83f
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Mon May 10 20:55:26 2010 +0200

    Fix g_free which should be g_object_unref in file browser

 plugins/filebrowser/gedit-file-browser-store.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-store.c b/plugins/filebrowser/gedit-file-browser-store.c
index e1629e1..922f06e 100644
--- a/plugins/filebrowser/gedit-file-browser-store.c
+++ b/plugins/filebrowser/gedit-file-browser-store.c
@@ -2876,7 +2876,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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]