mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
Qt: Fix crash on exit when boot fails
This commit is contained in:
parent
4aadcbf470
commit
19cd91a684
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue