Clean up generator state

This commit is contained in:
Phil Nash 2017-01-16 10:30:44 +00:00
parent 750b52b814
commit c65aeaf25f

View File

@ -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;