Fixed used of cleaned-up context by runner's destructor

This was causing a segfault for some
This commit is contained in:
Phil Nash
2012-05-25 08:52:05 +01:00
parent eb22e212c0
commit 06e959be3e
4 changed files with 107 additions and 47 deletions

View File

@@ -27,6 +27,8 @@ namespace Catch {
struct IContext
{
virtual ~IContext(){}
virtual IResultCapture& getResultCapture() = 0;
virtual IRunner& getRunner() = 0;
virtual IReporterRegistry& getReporterRegistry() = 0;