From 3a020ef87e08d908cfecbe6b30a3857c41df5b5e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 11 Aug 2020 02:56:12 +1000 Subject: [PATCH] HostInterface; Fix crash on shutdown if boot fails --- src/core/host_interface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index c3ec3ad7d..673f39f9e 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -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; }