created destructor for LeakDetector

This commit is contained in:
bigboynaruto 2017-10-15 23:30:22 +03:00
parent 296955c437
commit 026eea788c

View File

@ -69,7 +69,12 @@ public:
}
};
#else
class LeakDetector {};
class LeakDetector {
public:
~LeakDetector() {
Catch::cleanUp();
}
};
#endif
LeakDetector leakDetector;