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;