fix: Crash on exit

This commit is contained in:
WerWolv 2022-05-28 16:33:52 +02:00
parent 7bf94ffe42
commit 4fd8ada4ff
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}