Browse Source

Suppress leak reports in kicad.exe as well

6.0.7
Marek Roszko 5 years ago
committed by Mark Roszko
parent
commit
acce757df7
  1. 6
      kicad/kicad.cpp

6
kicad/kicad.cpp

@ -258,6 +258,12 @@ struct APP_KICAD : public wxApp
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() )
{
program.OnPgmExit();

Loading…
Cancel
Save