fix: Crash on exit

This commit is contained in:
WerWolv 2022-02-04 00:47:39 +01:00
parent 618eead341
commit f9668f4ba6
1 changed files with 2 additions and 0 deletions

View File

@ -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());