#3266: Order of Util::Application::uninitialize() is not in reverse as documented

This commit is contained in:
Günter Obiltschnig
2021-06-15 07:45:47 +02:00
parent 43aa85df70
commit 6fda5b590b

View File

@@ -193,13 +193,14 @@ void Application::uninitialize()
{ {
if (_initialized) if (_initialized)
{ {
for (auto& pSub: _subsystems) for (SubsystemVec::reverse_iterator it = _subsystems.rbegin(); it != _subsystems.rend(); ++it)
{ {
_pLogger->debug(std::string("Uninitializing subsystem: ") + pSub->name()); _pLogger->debug(std::string("Uninitializing subsystem: ") + (*it)->name());
pSub->uninitialize(); (*it)->uninitialize();
} }
_initialized = false; _initialized = false;
} }
} }