natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL.
* 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
This commit is contained in:
parent
81ee8129ce
commit
c56c8c43b9
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2000-02-08 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
* java/util/Properties.java (setProperty): New method.
|
* java/util/Properties.java (setProperty): New method.
|
||||||
|
|
|
@ -47,7 +47,7 @@ void
|
||||||
gnu::gcj::convert::Input_iconv::finalize (void)
|
gnu::gcj::convert::Input_iconv::finalize (void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ICONV
|
#ifdef HAVE_ICONV
|
||||||
if (handle == NULL)
|
if (handle != NULL)
|
||||||
{
|
{
|
||||||
iconv_close ((iconv_t) handle);
|
iconv_close ((iconv_t) handle);
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
|
@ -108,7 +108,7 @@ void
|
||||||
gnu::gcj::convert::Output_iconv::finalize (void)
|
gnu::gcj::convert::Output_iconv::finalize (void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ICONV
|
#ifdef HAVE_ICONV
|
||||||
if (handle == NULL)
|
if (handle != NULL)
|
||||||
{
|
{
|
||||||
iconv_close ((iconv_t) handle);
|
iconv_close ((iconv_t) handle);
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue