summaryrefslogtreecommitdiff
path: root/client
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-01 16:56:44 -0400
commit867cd04972606757549c64f8407edbbbe49d9555 (patch)
tree80b298beadcaa6328646abc688838e8ba005c135 /client
parenta5e21447be3c138969e80a3f779c8697b551db4f (diff)
downloadgvfs-867cd04972606757549c64f8407edbbbe49d9555.tar.gz
fuse: don't crash on unmount
https://bugzilla.gnome.org/show_bug.cgi?id=685248
Diffstat (limited to 'client')
-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;