git://git.jankratochvil.net
/
captive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed crash/lockup of fs unmount; GIOChannel was unreferenced twice.
[captive.git]
/
src
/
client
/
lufs
/
captivefs-vfs.c
diff --git
a/src/client/lufs/captivefs-vfs.c
b/src/client/lufs/captivefs-vfs.c
index
5b5a25e
..
b6381ba
100644
(file)
--- a/
src/client/lufs/captivefs-vfs.c
+++ b/
src/client/lufs/captivefs-vfs.c
@@
-183,7
+183,9
@@
void captivefs_free(struct captivefs_vfs *captivefs_vfs)
g_object_unref(captivefs_vfs->captive_vfs_object);
G_UNLOCK(libcaptive);
g_object_unref(captivefs_vfs->captive_vfs_object);
G_UNLOCK(libcaptive);
- g_io_channel_unref(captivefs_vfs->options.image_iochannel);
+ /* Do not: g_io_channel_unref(captivefs_vfs->options.image_iochannel);
+ * as it will be unreferenced by captive_options_free().
+ */
captive_options_free(&captivefs_vfs->options);
g_free(captivefs_vfs);
}
captive_options_free(&captivefs_vfs->options);
g_free(captivefs_vfs);
}