mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
Merge pull request #1283 from siavashserver/fix-memory-leak
Fix memory leak upon ProcessDeferred failure.
This commit is contained in:
commit
845860d565
@ -840,8 +840,13 @@ bool ProcessDeferred(
|
||||
// Add built-in symbols that are potentially context dependent;
|
||||
// they get popped again further down.
|
||||
if (! AddContextSpecificSymbols(resources, compiler->infoSink, symbolTable, version, profile, spvVersion,
|
||||
stage, source))
|
||||
stage, source)) {
|
||||
delete symbolTableMemory;
|
||||
delete [] lengths;
|
||||
delete [] strings;
|
||||
delete [] names;
|
||||
return false;
|
||||
}
|
||||
|
||||
//
|
||||
// Now we can process the full shader under proper symbols and rules.
|
||||
|
Loading…
Reference in New Issue
Block a user