From 1fc25af357735bcc2436507db4589b221626f327 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 3 Jan 2006 14:20:12 +0000 Subject: [PATCH] 2006-01-03 Marcus Brinkmann * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no channel for it. --- gpgme/ChangeLog | 5 +++++ gpgme/w32-glib-io.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; } -- 2.26.2