From 026eea788c5e54b79bc04e9f4c3f333183ae441c Mon Sep 17 00:00:00 2001 From: bigboynaruto Date: Sun, 15 Oct 2017 23:30:22 +0300 Subject: [PATCH] created destructor for LeakDetector --- include/catch.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/catch.hpp b/include/catch.hpp index f2d9f3da..ef6a7c3f 100644 --- a/include/catch.hpp +++ b/include/catch.hpp @@ -69,7 +69,12 @@ public: } }; #else -class LeakDetector {}; +class LeakDetector { + public: + ~LeakDetector() { + Catch::cleanUp(); + } +}; #endif LeakDetector leakDetector;