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))
|
||||
{
|
||||
ReportFormattedError("System failed to boot. The log may contain more information.");
|
||||
DestroySystem();
|
||||
OnSystemDestroyed();
|
||||
m_audio_stream.reset();
|
||||
ReleaseHostDisplay();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue