mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Clean up generator state
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash