From f9668f4ba61690643c2ada93e5bcb6cd5e610112 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 4 Feb 2022 00:47:39 +0100 Subject: [PATCH] fix: Crash on exit --- main/source/init/tasks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/source/init/tasks.cpp b/main/source/init/tasks.cpp index a7a9e7e4e..a439ae463 100644 --- a/main/source/init/tasks.cpp +++ b/main/source/init/tasks.cpp @@ -163,7 +163,9 @@ namespace hex::init { } bool deleteSharedData() { + ImHexApi::System::getInitArguments().clear(); ImHexApi::Tasks::getDeferredCalls().clear(); + ImHexApi::HexEditor::getHighlights().clear(); while (ImHexApi::Provider::isValid()) ImHexApi::Provider::remove(ImHexApi::Provider::get());