Fix segfault when exiting Pcbnew with wxPython scritping enabled. (fixes lp:1431028)
This commit is contained in:
parent
8879c0a411
commit
c9d52c8894
|
@ -143,6 +143,8 @@ struct APP_SINGLE_TOP : public wxApp
|
||||||
|
|
||||||
int OnExit() // overload wxApp virtual
|
int OnExit() // overload wxApp virtual
|
||||||
{
|
{
|
||||||
|
Pgm().OnPgmExit();
|
||||||
|
|
||||||
return wxApp::OnExit();
|
return wxApp::OnExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,8 +171,6 @@ struct APP_SINGLE_TOP : public wxApp
|
||||||
wxLogError( wxT( "Unhandled exception of unknown type" ) );
|
wxLogError( wxT( "Unhandled exception of unknown type" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
Pgm().OnPgmExit();
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue