Add memory leak tracing (Pull request 407)
This commit is contained in:
parent
58fe668fc4
commit
1734fc2e9a
|
@ -23,6 +23,11 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// MS Visual C++ memory leak debug tracing
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
|
||||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
try {
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue