Skip to content

Commit 1734fc2

Browse files
Dmitry-MePKEuS
authored andcommitted
Add memory leak tracing (Pull request 407)
1 parent 58fe668 commit 1734fc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testrunner.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
int main(int argc, char *argv[])
2525
{
26+
// MS Visual C++ memory leak debug tracing
27+
#if defined(_MSC_VER) && defined(_DEBUG)
28+
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
29+
#endif
30+
2631
#ifdef NDEBUG
2732
try {
2833
#endif

0 commit comments

Comments
 (0)