summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 8b9c4e3c0..5b4feb08f 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -688,12 +688,13 @@ void ResourceManager::deleteInstance()
while (iter != instance->mResources.end())
{
- if (iter->second)
+ Resource *res = iter->second;
+ if (res)
{
- if (iter->second->getRefCount())
+ if (res->getRefCount())
{
- logger->log("ResourceLeak: " + iter->second->getIdPath()
- + " (" + toString(iter->second->getRefCount()) + ")");
+ logger->log("ResourceLeak: " + res->getIdPath()
+ + " (" + toString(res->getRefCount()) + ")");
}
}
++iter;