Fix segfault when exiting Pcbnew with wxPython scritping enabled. (fixes lp:1431028)

This commit is contained in:
Chris Pavlina 2015-06-23 08:42:12 -04:00 committed by Wayne Stambaugh
parent 8879c0a411
commit c9d52c8894
1 changed files with 2 additions and 2 deletions

View File

@ -143,6 +143,8 @@ struct APP_SINGLE_TOP : public wxApp
int OnExit() // overload wxApp virtual
{
Pgm().OnPgmExit();
return wxApp::OnExit();
}
@ -169,8 +171,6 @@ struct APP_SINGLE_TOP : public wxApp
wxLogError( wxT( "Unhandled exception of unknown type" ) );
}
Pgm().OnPgmExit();
return ret;
}