diff --git a/main/source/init/tasks.cpp b/main/source/init/tasks.cpp index 85a495523..67e487aa9 100644 --- a/main/source/init/tasks.cpp +++ b/main/source/init/tasks.cpp @@ -178,10 +178,6 @@ namespace hex::init { ImHexApi::HexEditor::impl::getForegroundHighlightingFunctions().clear(); ImHexApi::HexEditor::impl::getTooltips().clear(); - while (ImHexApi::Provider::isValid()) - ImHexApi::Provider::remove(ImHexApi::Provider::get()); - ContentRegistry::Provider::getEntries().clear(); - ContentRegistry::Settings::getEntries().clear(); ContentRegistry::Settings::getSettingsData().clear(); @@ -217,6 +213,10 @@ namespace hex::init { ContentRegistry::DataFormatter::getEntries().clear(); ContentRegistry::FileHandler::getEntries().clear(); + while (ImHexApi::Provider::isValid()) + ImHexApi::Provider::remove(ImHexApi::Provider::get()); + ContentRegistry::Provider::getEntries().clear(); + return true; }