Add memory leak tracing (Pull request 407)

This commit is contained in:
Dmitry-Me 2014-09-29 12:26:54 +02:00 committed by PKEuS
parent 58fe668fc4
commit 1734fc2e9a
1 changed files with 5 additions and 0 deletions

View File

@ -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