fix: ImHex crashing on exit

Fixes #698
This commit is contained in:
WerWolv 2022-08-20 13:43:26 +02:00
parent 93be4c8ed1
commit 1462a4689d
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
#include <imgui_freetype.h>
#include <hex/api/content_registry.hpp>
#include <hex/api/project_file_manager.hpp>
#include <hex/ui/view.hpp>
#include <hex/helpers/net.hpp>
#include <hex/helpers/fs.hpp>
@ -229,6 +230,9 @@ namespace hex::init {
visualizers.clear();
}
ProjectFile::getHandlers().clear();
ProjectFile::getProviderHandlers().clear();
return true;
}