diff options
Diffstat (limited to 'source/core/slang-zip-file-system.cpp')
| -rw-r--r-- | source/core/slang-zip-file-system.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-zip-file-system.cpp b/source/core/slang-zip-file-system.cpp index 1ed003d55..ce25066df 100644 --- a/source/core/slang-zip-file-system.cpp +++ b/source/core/slang-zip-file-system.cpp @@ -709,12 +709,12 @@ SlangResult ZipFileSystemImpl::storeArchive(bool blobOwnsContent, ISlangBlob** o if (blobOwnsContent) { // Takes a copy - blob = new RawBlob(m_data.getData(), Index(m_data.getSizeInBytes())); + blob = RawBlob::create(m_data.getData(), Index(m_data.getSizeInBytes())); } else { // Doesn't take a copy... Must use with care(!) - blob = new UnownedRawBlob(m_data.getData(), Index(m_data.getSizeInBytes())); + blob = UnownedRawBlob::create(m_data.getData(), Index(m_data.getSizeInBytes())); } *outBlob = blob.detach(); return SLANG_OK; |
