1
0
mirror of synced 2025-01-19 01:24:15 +01:00

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

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