iconv_close when handle is not NULL. Thanks to Andrew Haley.
(Output_iconv::finalize): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31876
138bc75d-0d04-0410-961f-
82ee72b054a4
+2000-02-09 Tom Tromey <tromey@cygnus.com>
+
+ * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
+ iconv_close when handle is not NULL. Thanks to Andrew Haley.
+ (Output_iconv::finalize): Likewise.
+
2000-02-08 Tom Tromey <tromey@cygnus.com>
* java/util/Properties.java (setProperty): New method.
gnu::gcj::convert::Input_iconv::finalize (void)
{
#ifdef HAVE_ICONV
- if (handle == NULL)
+ if (handle != NULL)
{
iconv_close ((iconv_t) handle);
handle = NULL;
gnu::gcj::convert::Output_iconv::finalize (void)
{
#ifdef HAVE_ICONV
- if (handle == NULL)
+ if (handle != NULL)
{
iconv_close ((iconv_t) handle);
handle = NULL;