Suppress leak reports in kicad.exe as well

This commit is contained in:
Marek Roszko 2020-10-06 07:31:20 -04:00 committed by Mark Roszko
parent 2b2e8552be
commit acce757df7
1 changed files with 6 additions and 0 deletions

View File

@ -258,6 +258,12 @@ struct APP_KICAD : public wxApp
bool OnInit() override bool OnInit() override
{ {
#if defined( _MSC_VER ) && defined( DEBUG )
// wxWidgets turns on leak dumping in debug but its "flawed" and will falsely dump for half a hour
// _CRTDBG_ALLOC_MEM_DF is the usual default for MSVC
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
#endif
if( !program.OnPgmInit() ) if( !program.OnPgmInit() )
{ {
program.OnPgmExit(); program.OnPgmExit();