summaryrefslogtreecommitdiff
path: root/core/resource.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-15 10:27:57 +0200
committerqarmin <mikrutrafal54@gmail.com>2020-04-15 10:27:57 +0200
commit943ec798592e20446ae3661cb76c44a20c8a30ec (patch)
treef500ee152cbd4702ef077eb8542820dc2ec11b63 /core/resource.cpp
parent84142f6a5fcdf26e2a023e7b3914ac059b63df99 (diff)
Fixes leaks in ResourceCache, Vulkan and X11
Diffstat (limited to 'core/resource.cpp')
-rw-r--r--core/resource.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/resource.cpp b/core/resource.cpp
index d1883d8043..8d5c441b21 100644
--- a/core/resource.cpp
+++ b/core/resource.cpp
@@ -477,6 +477,9 @@ void ResourceCache::clear() {
resources.clear();
memdelete(lock);
+#ifdef TOOLS_ENABLED
+ memdelete(path_cache_lock);
+#endif
}
void ResourceCache::reload_externals() {