mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-17 07:02:12 +02:00
Merge pull request #15725 from hyperlogic/bug-fix/resource-cache-crash
Crash fix for ResourceCache::getResource()
This commit is contained in:
commit
d43365b6d9
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ void ResourceCache::setRequestLimit(uint32_t limit) {
|
|||
QSharedPointer<Resource> ResourceCache::getResource(const QUrl& url, const QUrl& fallback, void* extra, size_t extraHash) {
|
||||
QSharedPointer<Resource> resource;
|
||||
{
|
||||
QReadLocker locker(&_resourcesLock);
|
||||
QWriteLocker locker(&_resourcesLock);
|
||||
auto& resourcesWithExtraHash = _resources[url];
|
||||
auto resourcesWithExtraHashIter = resourcesWithExtraHash.find(extraHash);
|
||||
if (resourcesWithExtraHashIter != resourcesWithExtraHash.end()) {
|
||||
|
|
Loading…
Reference in a new issue