From 657213f13d49f0d2caaa8b64c1245ec8c75fc4d7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 24 Jul 2024 11:44:13 -0700 Subject: Cleanup global memory allocations on shutdown. (#4731) Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> --- source/slangc/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slangc/main.cpp') diff --git a/source/slangc/main.cpp b/source/slangc/main.cpp index e69a6655d..2907625ed 100644 --- a/source/slangc/main.cpp +++ b/source/slangc/main.cpp @@ -104,7 +104,7 @@ SLANG_TEST_TOOL_API SlangResult innerMain(StdWriters* stdWriters, slang::IGlobal SlangResult res = _compile(compileRequest, argc, argv); // Now that we are done, clean up after ourselves spDestroyCompileRequest(compileRequest); - + return res; } @@ -112,6 +112,7 @@ int MAIN(int argc, char** argv) { auto stdWriters = StdWriters::initDefaultSingleton(); SlangResult res = innerMain(stdWriters, nullptr, argc, argv); + slang::shutdown(); return (int)TestToolUtil::getReturnCode(res); } -- cgit v1.2.3