Infrastructure: remove potential memory leaks.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1772"
|
||||
#define GLSLANG_DATE "18-Jan-2017"
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1773"
|
||||
#define GLSLANG_DATE "19-Jan-2017"
|
||||
|
||||
@@ -4989,7 +4989,7 @@ void TParseContext::inheritGlobalDefaults(TQualifier& dst) const
|
||||
//
|
||||
TVariable* TParseContext::makeInternalVariable(const char* name, const TType& type) const
|
||||
{
|
||||
TString* nameString = new TString(name);
|
||||
TString* nameString = NewPoolTString(name);
|
||||
TVariable* variable = new TVariable(nameString, type);
|
||||
symbolTable.makeInternalVariable(*variable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user