one last fix

This commit is contained in:
StapleButter 2017-03-30 03:31:27 +02:00
parent 8e5f175f5e
commit 46ed4aeeb1
1 changed files with 3 additions and 2 deletions

View File

@ -106,8 +106,6 @@ bool wxApp_melonDS::OnInit()
int wxApp_melonDS::OnExit()
{
emuthread->EmuPause();
emuthread->EmuExit();
emuthread->Wait();
delete emuthread;
@ -169,6 +167,9 @@ MainFrame::MainFrame()
void MainFrame::OnClose(wxCloseEvent& event)
{
emuthread->EmuPause();
emuthread->EmuExit();
NDS::DeInit();
if (joy)