diff options
Diffstat (limited to 'source/slang/slang-file-system.cpp')
| -rw-r--r-- | source/slang/slang-file-system.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/slang/slang-file-system.cpp b/source/slang/slang-file-system.cpp index ebe1eeb61..d3d1fd9f5 100644 --- a/source/slang/slang-file-system.cpp +++ b/source/slang/slang-file-system.cpp @@ -210,7 +210,8 @@ CacheFileSystem::~CacheFileSystem() { for (const auto& pair : m_uniqueIdentityMap) { - delete pair.Value; + PathInfo* pathInfo = pair.Value; + delete pathInfo; } } @@ -261,7 +262,8 @@ void CacheFileSystem::clearCache() { for (const auto& pair : m_uniqueIdentityMap) { - delete pair.Value; + PathInfo* pathInfo = pair.Value; + delete pathInfo; } m_uniqueIdentityMap.Clear(); |
