summaryrefslogtreecommitdiff
path: root/src/resources/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resource.cpp')
-rw-r--r--src/resources/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/resource.cpp b/src/resources/resource.cpp
index b111a4081..b67fe644b 100644
--- a/src/resources/resource.cpp
+++ b/src/resources/resource.cpp
@@ -49,7 +49,7 @@ void Resource::decRef()
mRefCount--;
- if (mRefCount == 0)
+ if (mRefCount == 0 && !mNotCount)
{
// Warn the manager that this resource is no longer used.
ResourceManager *const resman = ResourceManager::getInstance();