mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:49:27 +02:00
Use correct resources lock
This commit is contained in:
parent
fc9de4b7e6
commit
cff5886313
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ void ResourceCache::resetResourceCounters() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResourceCache::removeResource(const QUrl& url, qint64 size) {
|
void ResourceCache::removeResource(const QUrl& url, qint64 size) {
|
||||||
QWriteLocker locker(&_unusedResourcesLock);
|
QWriteLocker locker(&_resourcesLock);
|
||||||
_resources.remove(url);
|
_resources.remove(url);
|
||||||
_totalResourcesSize -= size;
|
_totalResourcesSize -= size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue