Avoid leaking name for counter buffer

This commit is contained in:
David Neto 2019-01-16 10:44:31 -05:00
parent 4c096c52f8
commit 806e0573da

View File

@ -3208,7 +3208,7 @@ void HlslParseContext::declareStructBufferCounter(const TSourceLoc& loc, const T
TType blockType;
counterBufferType(loc, blockType);
TString* blockName = new TString(intermediate.addCounterBufferName(name));
TString* blockName = NewPoolTString(intermediate.addCounterBufferName(name).c_str());
// Counter buffer is not yet in use
structBufferCounter[*blockName] = false;