Merge pull request #1704 from dj2/leak

Fixup leak of TString
This commit is contained in:
John Kessenich
2019-02-21 13:09:30 +07:00
committed by GitHub

View File

@@ -4607,7 +4607,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*&
if (nullptr == symbol) {
type.getQualifier().builtIn = builtin;
TVariable* variable = new TVariable(new TString(name), type);
TVariable* variable = new TVariable(NewPoolTString(name), type);
symbolTable.insert(*variable);