* gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
iconv_close when handle is not NULL. Thanks to Andrew Haley.
(Output_iconv::finalize): Likewise.
From-SVN: r31876
+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;