mirror of https://github.com/catchorg/Catch2.git
Fix for GitHub issue #71
Fixed memory leak in exception translator registry
This commit is contained in:
parent
dd5b9c2ae5
commit
0dd3c57221
|
@ -18,6 +18,13 @@ namespace Catch
|
||||||
{
|
{
|
||||||
class ExceptionTranslatorRegistry : public IExceptionTranslatorRegistry
|
class ExceptionTranslatorRegistry : public IExceptionTranslatorRegistry
|
||||||
{
|
{
|
||||||
|
///////////////////////////////////////////////////////////////////////
|
||||||
|
~ExceptionTranslatorRegistry
|
||||||
|
()
|
||||||
|
{
|
||||||
|
deleteAll( m_translators );
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
virtual void registerTranslator
|
virtual void registerTranslator
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in New Issue