From 65abe51040d714016c14494b022abaeab638234b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 7 Apr 2021 13:56:56 -0700 Subject: Fix memory leak in `CacheFileSystem` (#1786) Not sure if this call to `addRef` is intentional, but it is causing memory leaks. --- source/core/slang-file-system.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/core') 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; -- cgit v1.2.3