Code

plugin: call g_io_channel_unref() early, eliminate "channel" attribute