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
commit ade579fbc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);