HostInterface; Fix crash on shutdown if boot fails

pull/737/head
Connor McLaughlin 5 years ago
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…
Cancel
Save