patch for a mem leak in ArgException

This commit is contained in:
mes5k 2006-04-06 06:44:26 +00:00
parent 288e8f500e
commit d45405908c

View File

@ -78,7 +78,8 @@ class ArgException : public std::exception
*/ */
const char* what() const throw() const char* what() const throw()
{ {
std::string ex = _argId + " -- " + _errorText; static std::string ex;
ex = _argId + " -- " + _errorText;
return ex.c_str(); return ex.c_str();
} }