mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-12 14:45:42 -04: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(),
|
!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()))
|
initial_save_state_filename_str.empty() ? nullptr : initial_save_state_filename_str.c_str()))
|
||||||
{
|
{
|
||||||
|
DestroySystem();
|
||||||
m_display_window->destroyDeviceContext();
|
m_display_window->destroyDeviceContext();
|
||||||
emit emulationStopped();
|
emit emulationStopped();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user