Revision: 7925 https://osdn.net/projects/ttssh2/scm/svn/commits/7925 Author: zmatsuo Date: 2019-08-09 00:17:04 +0900 (Fri, 09 Aug 2019) Log Message: ----------- メモリリーク修正 Modified Paths: -------------- trunk/teraterm/common/tmfc.cpp -------------- next part -------------- Modified: trunk/teraterm/common/tmfc.cpp =================================================================== --- trunk/teraterm/common/tmfc.cpp 2019-08-08 15:04:14 UTC (rev 7924) +++ trunk/teraterm/common/tmfc.cpp 2019-08-08 15:17:04 UTC (rev 7925) @@ -554,17 +554,15 @@ hInstance, lpTemplate, hParent, dlgproc, (LPARAM)this); pseudoPtr = nullptr; +#if defined(REWRITE_TEMPLATE) + free(lpTemplate); +#endif if (hWnd == nullptr) { assert(false); return FALSE; } - m_hWnd = hWnd; - m_hInst = hInstance; -// ::EnableWindow(hParent,FALSE); -// ::ShowWindow(hWnd, SW_SHOW); // TODO \x8AO\x82ł\xE2\x82\xE9\x82̂\xAA\x97ǂ\xB3\x82\xBB\x82\xA4 -// ::EnableWindow(m_hWnd,TRUE); return TRUE; }