Merge pull request #1283 from siavashserver/fix-memory-leak
Fix memory leak upon ProcessDeferred failure.
This commit is contained in:
commit
845860d565
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue