mirror of
https://github.com/RPCS3/glslang.git
synced 2026-01-31 01:25:22 +01:00
Avoid leaking name for counter buffer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user