Mercurial > gftp.yaz
diff lib/protocols.c @ 187:a8ec69e39112
2003-6-16 Brian Masney <masneyb@gftp.org>
* lib/protocols.c - run g_iconv_close() in gftp_disconnect() instead
of gftp_end_transfer()
author | masneyb |
---|---|
date | Tue, 17 Jun 2003 10:51:49 +0000 |
parents | 13ca1defdc75 |
children | 836822c2d4e7 |
line wrap: on
line diff
--- a/lib/protocols.c Tue Jun 17 10:49:16 2003 +0000 +++ b/lib/protocols.c Tue Jun 17 10:51:49 2003 +0000 @@ -137,6 +137,14 @@ } #endif +#if GLIB_MAJOR_VERSION > 1 + if (request->iconv_initialized) + { + g_iconv_close (request->iconv); + request->iconv_initialized = 0; + } +#endif + request->cached = 0; if (request->disconnect == NULL) return; @@ -282,12 +290,6 @@ request->last_dir_entry_len = 0; } - if (request->iconv_initialized) - { - g_iconv_close (request->iconv); - request->iconv_initialized = 0; - } - return (ret); }