summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-04-07 13:56:56 -0700
committerGitHub <noreply@github.com>2021-04-07 16:56:56 -0400
commit65abe51040d714016c14494b022abaeab638234b (patch)
tree69873cd6a16bb56583da80c873fb94c4c9362c25 /source
parent9ac3deca0583d3261f33991b0abd695ae1d7f478 (diff)
Fix memory leak in `CacheFileSystem` (#1786)
Not sure if this call to `addRef` is intentional, but it is causing memory leaks.
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-file-system.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/core/slang-file-system.h b/source/core/slang-file-system.h
index caf7ffc23..1a27ddc83 100644
--- a/source/core/slang-file-system.h
+++ b/source/core/slang-file-system.h
@@ -116,7 +116,6 @@ class CacheFileSystem: public ISlangFileSystemExt, public RefObject
PathInfo(const String& uniqueIdentity)
{
m_uniqueIdentity = new StringBlob(uniqueIdentity);
- m_uniqueIdentity->addRef();
m_loadFileResult = CompressedResult::Uninitialized;
m_getPathTypeResult = CompressedResult::Uninitialized;