From 5fc93f9399795156b4a1fbde5f410ca01d94d609 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 6 Feb 2021 17:09:47 -0600 Subject: Cleanup should always be attempted, and add some logging for it. Continuation of #6297 --- src/engine/engine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/engine/engine.cpp') diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 98c98661..7e6e2922 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -592,13 +592,12 @@ static HRESULT RunNormal( ExitOnFailure(hr, "Failed while running "); } while (fReloadApp); +LExit: if (!fSkipCleanup) { - hr = CoreCleanup(pEngineState); - ExitOnFailure(hr, "Failed to cleanup before shutting down"); + CoreCleanup(pEngineState); } -LExit: BurnExtensionUnload(&pEngineState->extensions); // If the message window is still around, close it. -- cgit v1.2.3-55-g6feb