fix: Crash when opening a project file when already having providers open

This commit is contained in:
WerWolv 2023-01-07 22:43:44 +01:00
parent ab29303c2e
commit ceae23eab1
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ namespace hex {
return false;
}
for (const auto &provider : ImHexApi::Provider::getProviders()) {
auto providers = auto(ImHexApi::Provider::getProviders());
for (const auto &provider : providers) {
ImHexApi::Provider::remove(provider);
}