From: Marcus Brinkmann Date: Tue, 3 Jan 2006 14:20:12 +0000 (+0000) Subject: 2006-01-03 Marcus Brinkmann X-Git-Tag: gpgme-1-1-1~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1fc25af357735bcc2436507db4589b221626f327;p=gpgme.git 2006-01-03 Marcus Brinkmann * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no channel for it. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 5030dd0..3ca9302 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2006-01-03 Marcus Brinkmann + + * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no + channel for it. + 2005-12-31 Marcus Brinkmann * w32-glib-io.c (find_channel): Set channel to unbuffered. diff --git a/gpgme/w32-glib-io.c b/gpgme/w32-glib-io.c index 5c11660..7dd5740 100644 --- a/gpgme/w32-glib-io.c +++ b/gpgme/w32-glib-io.c @@ -287,8 +287,8 @@ _gpgme_io_close (int fd) g_io_channel_unref (chan); giochannel_table[fd] = NULL; } - - _close (fd); + else + _close (fd); return 0; }