From f4f16b2fd6c455cd38e089a97db374c5ee3ea9fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Oct 2012 15:42:25 +0300 Subject: fix code style. --- src/resources/resourcemanager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/resources/resourcemanager.cpp') 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; -- cgit v1.2.3-70-g09d2