Freed up some memory when no longer needed in glslangValidator.
This commit is contained in:
parent
863aa667f3
commit
b891c2b827
1 changed files with 9 additions and 0 deletions
|
|
@ -435,6 +435,8 @@ void ProcessConfigFile()
|
||||||
}
|
}
|
||||||
if (configStrings)
|
if (configStrings)
|
||||||
FreeFileData(configStrings);
|
FreeFileData(configStrings);
|
||||||
|
else
|
||||||
|
delete[] config;
|
||||||
}
|
}
|
||||||
|
|
||||||
// thread-safe list of shaders to asynchronously grab and compile
|
// thread-safe list of shaders to asynchronously grab and compile
|
||||||
|
|
@ -805,6 +807,11 @@ int C_DECL main(int argc, char* argv[])
|
||||||
glslang::InitializeProcess();
|
glslang::InitializeProcess();
|
||||||
CompileAndLinkShaders();
|
CompileAndLinkShaders();
|
||||||
glslang::FinalizeProcess();
|
glslang::FinalizeProcess();
|
||||||
|
for (int w = 0; w < NumWorkItems; ++w) {
|
||||||
|
if (Work[w]) {
|
||||||
|
delete Work[w];
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ShInitialize();
|
ShInitialize();
|
||||||
|
|
||||||
|
|
@ -837,6 +844,8 @@ int C_DECL main(int argc, char* argv[])
|
||||||
ShFinalize();
|
ShFinalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete[] Work;
|
||||||
|
|
||||||
if (CompileFailed)
|
if (CompileFailed)
|
||||||
return EFailCompile;
|
return EFailCompile;
|
||||||
if (LinkFailed)
|
if (LinkFailed)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue