fix leak in SPIRV code generator
BUG=skia:6101 Change-Id: Ic083becfb44e36b029ef9511825f4a681b7495f4 Reviewed-on: https://skia-review.googlesource.com/9103 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
parent
30f2ec82b8
commit
39b101b13d
@ -2540,6 +2540,9 @@ SpvId SPIRVCodeGenerator::writeInterfaceBlock(const InterfaceBlock& intf) {
|
||||
this->writeInstruction(SpvOpVariable, ptrType, result, storageClass, fConstantBuffer);
|
||||
this->writeLayout(intf.fVariable.fModifiers.fLayout, result);
|
||||
fVariableMap[&intf.fVariable] = result;
|
||||
if (fProgram.fInputs.fRTHeight) {
|
||||
delete type;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user