diff options
Diffstat (limited to 'src/FbTk/FbString.cc')
-rw-r--r-- | src/FbTk/FbString.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc index d3f6b81..ff4d27a 100644 --- a/src/FbTk/FbString.cc +++ b/src/FbTk/FbString.cc | |||
@@ -261,7 +261,8 @@ bool StringConvertor::setSource(const std::string &encoding) { | |||
261 | if (newiconv == ((iconv_t)(-1))) | 261 | if (newiconv == ((iconv_t)(-1))) |
262 | return false; | 262 | return false; |
263 | else { | 263 | else { |
264 | iconv_close(m_iconv); | 264 | if (m_iconv != ((iconv_t)-1)) |
265 | iconv_close(m_iconv); | ||
265 | m_iconv = newiconv; | 266 | m_iconv = newiconv; |
266 | return true; | 267 | return true; |
267 | } | 268 | } |