mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
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
This commit is contained in:
parent
aab41042fc
commit
b38b75bbb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user