Commit b891c2b8 by Andrew Woloszyn

Freed up some memory when no longer needed in glslangValidator.

parent 863aa667
......@@ -435,6 +435,8 @@ void ProcessConfigFile()
}
if (configStrings)
FreeFileData(configStrings);
else
delete[] config;
}
// thread-safe list of shaders to asynchronously grab and compile
......@@ -805,6 +807,11 @@ int C_DECL main(int argc, char* argv[])
glslang::InitializeProcess();
CompileAndLinkShaders();
glslang::FinalizeProcess();
for (int w = 0; w < NumWorkItems; ++w) {
if (Work[w]) {
delete Work[w];
}
}
} else {
ShInitialize();
......@@ -837,6 +844,8 @@ int C_DECL main(int argc, char* argv[])
ShFinalize();
}
delete[] Work;
if (CompileFailed)
return EFailCompile;
if (LinkFailed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment