diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-03-30 13:30:52 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-03-30 13:30:52 +0000 |
commit | 26a1d639e73e6a247a365cb910c245c89fd6a194 (patch) | |
tree | 0ffd0658f2f760a065f1b7bb8f774c662301f42f /src/fe-common | |
parent | 1ffed412c662f2fb3cdb0bc56a5f55bd127aceb2 (diff) | |
download | irssi-26a1d639e73e6a247a365cb910c245c89fd6a194.zip |
Use g_io_channel_unref rather than g_io_channel_close for file
channels.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4789 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 2 | ||||
-rw-r--r-- | src/fe-common/core/fe-core-commands.c | 2 | ||||
-rw-r--r-- | src/fe-common/core/fe-help.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index ada22785..37eab282 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -419,7 +419,7 @@ static void autorun_startup(void) } g_string_free(buf, TRUE); - g_io_channel_close(handle); + g_io_channel_unref(handle); } void fe_common_core_finish_init(void) diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index afad131d..765e70c6 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -146,7 +146,7 @@ static void cmd_cat(const char *data) } g_string_free(buf, TRUE); - g_io_channel_close(handle); + g_io_channel_unref(handle); } /* SYNTAX: BEEP */ diff --git a/src/fe-common/core/fe-help.c b/src/fe-common/core/fe-help.c index c2b1f596..f3eec5fb 100644 --- a/src/fe-common/core/fe-help.c +++ b/src/fe-common/core/fe-help.c @@ -151,7 +151,7 @@ static int show_help_file(const char *file) } g_string_free(buf, TRUE); - g_io_channel_close(handle); + g_io_channel_unref(handle); return TRUE; } |