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