diff options
author | Matthias S. Benkmann <matthias@winterdrache.de> | 2008-06-07 13:14:23 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-06-07 13:14:23 (GMT) |
commit | 6509fe0cacf25f30fb6fce9df9569d14f00f0a8f (patch) | |
tree | 0edf3d2272a974e523796e3dcec7baf064bf28f7 /src/FbTk | |
parent | 82045e51c8b557f6c3d42c7bfbcc89e5096cad6f (diff) | |
download | fluxbox-6509fe0cacf25f30fb6fce9df9569d14f00f0a8f.zip fluxbox-6509fe0cacf25f30fb6fce9df9569d14f00f0a8f.tar.bz2 |
fix some memory leaks and uninitialized values
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FbString.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/FbString.hh b/src/FbTk/FbString.hh index 21185f4..1e473cc 100644 --- a/src/FbTk/FbString.hh +++ b/src/FbTk/FbString.hh | |||
@@ -67,6 +67,8 @@ public: | |||
67 | bool setSource(const std::string &encoding); | 67 | bool setSource(const std::string &encoding); |
68 | void reset() { | 68 | void reset() { |
69 | #ifdef HAVE_ICONV | 69 | #ifdef HAVE_ICONV |
70 | if (m_iconv != ((iconv_t)-1)) | ||
71 | iconv_close(m_iconv); | ||
70 | m_iconv = ((iconv_t)(-1)); | 72 | m_iconv = ((iconv_t)(-1)); |
71 | #endif | 73 | #endif |
72 | } | 74 | } |