Fix for GitHub issue #71

Fixed memory leak in exception translator registry
This commit is contained in:
Phil Nash 2012-02-18 19:14:09 +00:00
parent dd5b9c2ae5
commit 0dd3c57221

View File

@ -18,6 +18,13 @@ namespace Catch
{
class ExceptionTranslatorRegistry : public IExceptionTranslatorRegistry
{
///////////////////////////////////////////////////////////////////////
~ExceptionTranslatorRegistry
()
{
deleteAll( m_translators );
}
///////////////////////////////////////////////////////////////////////
virtual void registerTranslator
(