diff --git a/lib/libimhex/source/api/project_file_manager.cpp b/lib/libimhex/source/api/project_file_manager.cpp index b2882e57e..7f375637e 100644 --- a/lib/libimhex/source/api/project_file_manager.cpp +++ b/lib/libimhex/source/api/project_file_manager.cpp @@ -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); }