Skip to content
Snippets Groups Projects
Unverified Commit b502a802 authored by siavashserver's avatar siavashserver Committed by GitHub
Browse files

Fix memory leak upon ProcessDeferred failure.

parent a5152505
No related branches found
No related tags found
No related merge requests found
...@@ -840,8 +840,13 @@ bool ProcessDeferred( ...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment