Fixed crash/lockup of fs unmount; GIOChannel was unreferenced twice.
authorshort <>
Tue, 28 Oct 2003 11:48:43 +0000 (11:48 +0000)
committershort <>
Tue, 28 Oct 2003 11:48:43 +0000 (11:48 +0000)
 - Bugreported by Martin Drab.

src/client/lufs/captivefs-vfs.c

index 5b5a25e..b6381ba 100644 (file)
@@ -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);
 }