From: Marcus Brinkmann Date: Tue, 3 Jan 2006 14:20:12 +0000 (+0000) Subject: 2006-01-03 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~237 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5ad877039d5a24701783c65f538faf9bb2c67b7;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/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 5030dd0..3ca9302 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/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/trunk/gpgme/w32-glib-io.c b/trunk/gpgme/w32-glib-io.c index 5c11660..7dd5740 100644 --- a/trunk/gpgme/w32-glib-io.c +++ b/trunk/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; }