diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-26 11:06:29 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-26 11:06:29 +0000 |
commit | 8ccbb1a4fc500d7ae746868da85907f4c80f1ea2 (patch) | |
tree | 688d11790ab2778373671982c9f349334f1a2400 /support.c | |
parent | c3f9aa85429f0d60988326f3ef779a1a7c860f79 (diff) | |
download | mpd-8ccbb1a4fc500d7ae746868da85907f4c80f1ea2.tar.gz mpd-8ccbb1a4fc500d7ae746868da85907f4c80f1ea2.tar.xz mpd-8ccbb1a4fc500d7ae746868da85907f4c80f1ea2.zip |
Updated the logic in charset_close(), why free stuff that isnt allocated.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@496 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | support.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -166,12 +166,12 @@ int charset_close(void) { #ifdef HAVE_ICONV - if( iconv_from_uft8 == (iconv_t)(-1) ) + if( iconv_from_uft8 != (iconv_t)(-1) ) { iconv_close(iconv_from_uft8); iconv_from_uft8 = (iconv_t)(-1); } - if( iconv_to_uft8 == (iconv_t)(-1) ) + if( iconv_to_uft8 != (iconv_t)(-1) ) { iconv_close(iconv_to_uft8); iconv_to_uft8 = (iconv_t)(-1); |