Unverified Commit ade579fb by John Kessenich Committed by GitHub

Merge pull request #1704 from dj2/leak

Fixup leak of TString
parents 58d6905e 0560138e
...@@ -4607,7 +4607,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*& ...@@ -4607,7 +4607,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*&
if (nullptr == symbol) { if (nullptr == symbol) {
type.getQualifier().builtIn = builtin; type.getQualifier().builtIn = builtin;
TVariable* variable = new TVariable(new TString(name), type); TVariable* variable = new TVariable(NewPoolTString(name), type);
symbolTable.insert(*variable); symbolTable.insert(*variable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment