summaryrefslogtreecommitdiff
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 2b1857e07..b94e146dd 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -979,9 +979,6 @@ SLANG_API void spDestroySession(
{
if(!session) return;
delete SESSION(session);
-#ifdef _MSC_VER
- _CrtDumpMemoryLeaks();
-#endif
}
SLANG_API void spAddBuiltins(
@@ -1483,7 +1480,8 @@ SLANG_API SlangResult spGetEntryPointCodeBlob(
}
Slang::CompileResult& result = targetReq->entryPointResults[entryPointIndex];
- *outBlob = result.getBlob().detach();
+ auto blob = result.getBlob();
+ *outBlob = blob.detach();
return SLANG_OK;
}