mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
fixed some potential memory leaks and other errors detected by cppcheck
This commit is contained in:
@@ -58,7 +58,7 @@ void ResourceManager::Sweep(double currentTime)
|
||||
WriteLog("Releasing resources");
|
||||
#endif
|
||||
|
||||
for (Resources::iterator iter = begin; iter != _resources.end(); iter++)
|
||||
for (Resources::iterator iter = begin; iter != _resources.end(); ++iter)
|
||||
(*iter)->Release();
|
||||
|
||||
#ifdef RESOURCE_REPORTING
|
||||
|
||||
Reference in New Issue
Block a user