mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
HostInterface; Fix crash on shutdown if boot fails
This commit is contained in:
parent
8c472a8258
commit
3a020ef87e
|
@ -97,7 +97,9 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||||
if (!System::Boot(parameters))
|
if (!System::Boot(parameters))
|
||||||
{
|
{
|
||||||
ReportFormattedError("System failed to boot. The log may contain more information.");
|
ReportFormattedError("System failed to boot. The log may contain more information.");
|
||||||
DestroySystem();
|
OnSystemDestroyed();
|
||||||
|
m_audio_stream.reset();
|
||||||
|
ReleaseHostDisplay();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue