[gvfs/gnome-3-6] fuse: don't crash on unmount
- From: Michael Terry <mterry src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gvfs/gnome-3-6] fuse: don't crash on unmount
- Date: Tue,  2 Oct 2012 14:15:53 +0000 (UTC)
commit 46b18b554e9fba90998ae1ebf4196233953f78ad
Author: Michael Terry <michael terry canonical com>
Date:   Mon Oct 1 16:56:44 2012 -0400
    fuse: don't crash on unmount
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685248
 client/gvfsfusedaemon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index dd96732..450c690 100644
--- a/client/gvfsfusedaemon.c
+++ b/client/gvfsfusedaemon.c
@@ -379,7 +379,7 @@ mount_record_new (GMount *mount)
   mount_record = g_new (MountRecord, 1);
   
   mount_record->root = g_mount_get_root (mount);
-  mount_record->name = g_object_get_data (G_OBJECT (mount), "g-stable-name");
+  mount_record->name = g_strdup (g_object_get_data (G_OBJECT (mount), "g-stable-name"));
   mount_record->creation_time = time (NULL);
   
   return mount_record;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]