From 76f7d209d3dd7fced17027007abfb4fc301ae562 Mon Sep 17 00:00:00 2001 From: short <> Date: Tue, 28 Oct 2003 11:48:43 +0000 Subject: [PATCH] Fixed crash/lockup of fs unmount; GIOChannel was unreferenced twice. - Bugreported by Martin Drab. --- src/client/lufs/captivefs-vfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/lufs/captivefs-vfs.c b/src/client/lufs/captivefs-vfs.c index 5b5a25e..b6381ba 100644 --- 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_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); } -- 1.8.3.1