mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-24 04:04:58 +00:00
Fix memory leak upon ProcessDeferred failure.
This commit is contained in:
parent
a51525059f
commit
b502a802f4
@ -840,8 +840,13 @@ bool ProcessDeferred(
|
|||||||
// Add built-in symbols that are potentially context dependent;
|
// Add built-in symbols that are potentially context dependent;
|
||||||
// they get popped again further down.
|
// they get popped again further down.
|
||||||
if (! AddContextSpecificSymbols(resources, compiler->infoSink, symbolTable, version, profile, spvVersion,
|
if (! AddContextSpecificSymbols(resources, compiler->infoSink, symbolTable, version, profile, spvVersion,
|
||||||
stage, source))
|
stage, source)) {
|
||||||
|
delete symbolTableMemory;
|
||||||
|
delete [] lengths;
|
||||||
|
delete [] strings;
|
||||||
|
delete [] names;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Now we can process the full shader under proper symbols and rules.
|
// Now we can process the full shader under proper symbols and rules.
|
||||||
|
Loading…
Reference in New Issue
Block a user