diff options
| author | Phil Nash | 2017-01-16 10:30:44 +0000 |
|---|---|---|
| committer | Phil Nash | 2017-01-16 10:34:16 +0000 |
| commit | c65aeaf25f63de7aa95dffef7fe8ddb7434cc5a9 (patch) | |
| tree | 53e08a4ec70807d4f7de808b41fa9f5bdfcd40a6 | |
| parent | 750b52b81496f7391c29bf3ba50db2fb953bb45c (diff) | |
| download | catch3-c65aeaf25f63de7aa95dffef7fe8ddb7434cc5a9.tar.gz | |
Clean up generator state
| -rw-r--r-- | include/internal/catch_context_impl.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/catch_context_impl.hpp b/include/internal/catch_context_impl.hpp index 030f29e2..8516ad93 100644 --- a/include/internal/catch_context_impl.hpp +++ b/include/internal/catch_context_impl.hpp @@ -12,6 +12,7 @@ #include "catch_context.h" #include "catch_stream.hpp" +#include "catch_common.h" namespace Catch { @@ -21,6 +22,11 @@ namespace Catch { Context( Context const& ); void operator=( Context const& ); + public: + virtual ~Context() { + deleteAllValues( m_generatorsByTestName ); + } + public: // IContext virtual IResultCapture* getResultCapture() { return m_resultCapture; |