Mercurial > hg
changeset 1912:ee8657ff9aa8
Fix two fd leaks
author | franky |
---|---|
date | Fri, 14 May 2010 11:58:13 +0200 |
parents | baa52ea32b47 |
children | 3cabdacf58df |
files | mcabber/mcabber/fifo.c mcabber/mcabber/help.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/fifo.c Fri May 14 09:58:40 2010 +0200 +++ b/mcabber/mcabber/fifo.c Fri May 14 11:58:13 2010 +0200 @@ -121,6 +121,9 @@ if (fd == -1) return FALSE; + if (fifo_channel) + g_io_channel_unref(fifo_channel); + fifo_channel = g_io_channel_unix_new(fd); g_io_channel_set_flags(fifo_channel, G_IO_FLAG_NONBLOCK, NULL);