Shutdown the machine before exiting, otherwise we can

segfault if a rom is playing. It also cleanups valgrind
output when looking for leaks.
This commit is contained in:
riccardom 2010-04-02 13:49:57 +00:00
parent 40d342e48f
commit f0b76ada6d
1 changed files with 7 additions and 1 deletions

View File

@ -95,7 +95,13 @@ public:
delete history;
}
void OnQuit(wxCommandEvent& WXUNUSED(event)){Close(true);}
void OnQuit(wxCommandEvent& WXUNUSED(event))
{
execute = false;
NDS_DeInit();
Close(true);
}
void OnAbout(wxCommandEvent& WXUNUSED(event))
{
wxMessageBox(