Skip to content

Commit 8f59b42

Browse files
committed
Fix OpModuleProcessed memory leak
1 parent 8679b96 commit 8f59b42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SPIRV/libSPIRV/SPIRVModule.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ SPIRVModuleImpl::~SPIRVModuleImpl() {
541541

542542
for (auto C : CapMap)
543543
delete C.second;
544+
545+
for (auto *M : ModuleProcessedVec)
546+
delete M;
544547
}
545548

546549
const std::shared_ptr<const SPIRVLine> &

0 commit comments

Comments
 (0)