mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
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
Block a user