summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/resourcemanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 71b5e9a1d..b6befb491 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -271,9 +271,10 @@ void ResourceManager::clearDeleted()
if (!(*resDelIter)->getRefCount())
{
status = true;
- logResource(*resDelIter);
+ Resource *res = *resDelIter;
+ logResource(res);
mDeletedResources.erase(resDelIter);
- delete *resDelIter;
+ delete res;
break;
}
++ resDelIter;