diff --git a/src/doxygen.cpp b/src/doxygen.cpp index fcf1039c5bd..97c49e00589 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -11407,6 +11407,10 @@ void adjustConfiguration() "Check the 'INPUT_ENCODING' setting in the config file!\n", qPrint(Config_getString(INPUT_ENCODING)),qPrint("UTF-8"),strerror(errno)); } + else + { + portable_iconv_close(cd); + } // check and split INPUT_FILE_ENCODING const StringVector &fileEncod = Config_getList(INPUT_FILE_ENCODING); @@ -11434,6 +11438,10 @@ void adjustConfiguration() "Check the 'INPUT_FILE_ENCODING' setting in the config file!\n", qPrint(encoding),qPrint("UTF-8"),strerror(errno)); } + else + { + portable_iconv_close(cd); + } Doxygen::inputFileEncoding.push_back(InputFileEncoding(pattern, encoding)); }