From: short <> Date: Tue, 28 Oct 2003 11:48:43 +0000 (+0000) Subject: Fixed crash/lockup of fs unmount; GIOChannel was unreferenced twice. X-Git-Tag: captive-1_0_1~22 X-Git-Url: http://git.jankratochvil.net/?a=commitdiff_plain;ds=sidebyside;h=76f7d209d3dd7fced17027007abfb4fc301ae562;p=captive.git Fixed crash/lockup of fs unmount; GIOChannel was unreferenced twice. - Bugreported by Martin Drab. --- 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); }