mirror of https://github.com/catchorg/Catch2.git
created destructor for LeakDetector
This commit is contained in:
parent
296955c437
commit
026eea788c
|
@ -69,7 +69,12 @@ public:
|
|||
}
|
||||
};
|
||||
#else
|
||||
class LeakDetector {};
|
||||
class LeakDetector {
|
||||
public:
|
||||
~LeakDetector() {
|
||||
Catch::cleanUp();
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
LeakDetector leakDetector;
|
||||
|
|
Loading…
Reference in New Issue