summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2012-10-01 16:56:44 -0400
committerMichael Terry <michael.terry@canonical.com>2012-10-02 10:15:28 -0400
commit46b18b554e9fba90998ae1ebf4196233953f78ad (patch)
tree09bcccd59f77a29f71ce028474c0caeec36117a8
parent28499561527f6ce25f42f1c2bb44fd170a7fc5e0 (diff)
downloadgvfs-46b18b554e9fba90998ae1ebf4196233953f78ad.tar.gz
fuse: don't crash on unmount
https://bugzilla.gnome.org/show_bug.cgi?id=685248
-rw-r--r--client/gvfsfusedaemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index dd96732e..450c690e 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;