KiCad: fix segfault when cancelling when another instance is already running. (fixes lp:1494616)

* Do not initialize BIN_MOD until after program initialiaztion returns true.
This commit is contained in:
Simon Wells 2015-09-12 11:06:37 -04:00 committed by Wayne Stambaugh
commit 3076a5deda
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,6 @@ bool PGM_KICAD::OnPgmInit( wxApp* aWxApp )
{
m_wx_app = aWxApp; // first thing.
m_bm.Init();
wxString absoluteArgv0 = wxStandardPaths::Get().GetExecutablePath();
if( !wxIsAbsolutePath( absoluteArgv0 ) )
@ -117,6 +115,8 @@ bool PGM_KICAD::OnPgmInit( wxApp* aWxApp )
if( !initPgm() )
return false;
m_bm.Init();
// Add search paths to feed the PGM_KICAD::SysSearch() function,
// currenly limited in support to only look for project templates
{