diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2009-10-23 21:17:03 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2009-10-23 21:17:03 +0000 |
commit | b38b75bbb4be71792b02ea9bb48d313d92158219 (patch) | |
tree | b033f0be34633c1cf6555712496f3183195b598e /src/lib-config | |
parent | aab41042fc0bd7a57722311bc6c2ba7e38fd93e5 (diff) | |
download | irssi-b38b75bbb4be71792b02ea9bb48d313d92158219.zip |
Add forgotten g_io_channel_set_close_on_unref call to close the config file fd
after saving, patch by Sven Wegener.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5101 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-config')
-rw-r--r-- | src/lib-config/write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib-config/write.c b/src/lib-config/write.c index 85bd0406..37e51f09 100644 --- a/src/lib-config/write.c +++ b/src/lib-config/write.c @@ -314,6 +314,7 @@ int config_write(CONFIG_REC *rec, const char *fname, int create_mode) rec->handle = g_io_channel_unix_new(fd); g_io_channel_set_encoding(rec->handle, NULL, NULL); + g_io_channel_set_close_on_unref(rec->handle, TRUE); rec->tmp_indent_level = 0; rec->tmp_last_lf = TRUE; ret = config_write_block(rec, rec->mainnode, FALSE, TRUE); |