Qt: Fix crash on exit when boot fails

This commit is contained in:
Connor McLaughlin 2020-01-24 14:51:28 +10:00
parent 4aadcbf470
commit 19cd91a684
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ void QtHostInterface::doBootSystem(QString initial_filename, QString initial_sav
!BootSystem(initial_filename_str.empty() ? nullptr : initial_filename_str.c_str(),
initial_save_state_filename_str.empty() ? nullptr : initial_save_state_filename_str.c_str()))
{
DestroySystem();
m_display_window->destroyDeviceContext();
emit emulationStopped();
return;