- Bugreported by Martin Drab.
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);
}