Revision: 7656 https://osdn.net/projects/ttssh2/scm/svn/commits/7656 Author: zmatsuo Date: 2019-05-08 01:47:37 +0900 (Wed, 08 May 2019) Log Message: ----------- Debug時、debug版new演算子を使用するようにした。 不要な_CrtSetDbgFlag()呼び出しを削除。 Modified Paths: -------------- trunk/teraterm/teraterm/teraterm.cpp -------------- next part -------------- Modified: trunk/teraterm/teraterm/teraterm.cpp =================================================================== --- trunk/teraterm/teraterm/teraterm.cpp 2019-05-07 16:47:13 UTC (rev 7655) +++ trunk/teraterm/teraterm/teraterm.cpp 2019-05-07 16:47:37 UTC (rev 7656) @@ -54,11 +54,7 @@ #include "dlglib.h" #include "teraterml.h" -#if 0 -//#ifdef _DEBUG -//#define new DEBUG_NEW -//#undef THIS_FILE -//static char THIS_FILE[] = __FILE__; +#if defined(_DEBUG) && defined(_MSC_VER) #define new ::new(_NORMAL_BLOCK, __FILE__, __LINE__) #endif @@ -105,9 +101,6 @@ static void init() { -#ifdef _DEBUG - ::_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); -#endif DLLInit(); WinCompatInit(); LoadSpecialFont(); @@ -272,7 +265,7 @@ LPSTR lpszCmdLine, int nCmdShow) { #ifdef _DEBUG - ::_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif LONG lCount = 0;