Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorPhil Nash2017-01-16 10:30:44 +0000
committerPhil Nash2017-01-16 10:34:16 +0000
commitc65aeaf25f63de7aa95dffef7fe8ddb7434cc5a9 (patch)
tree53e08a4ec70807d4f7de808b41fa9f5bdfcd40a6 /include/internal
parent750b52b81496f7391c29bf3ba50db2fb953bb45c (diff)
downloadcatch3-c65aeaf25f63de7aa95dffef7fe8ddb7434cc5a9.tar.gz
Clean up generator state
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/catch_context_impl.hpp6
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;