VERY experimental Nintendo Switch 2 emulator
C++
[Maxwell]: Fix shaders compilation memory leak (#2606)
Gamer6443a7470a7d09
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cppindex b5e1e70b4c..6d325b4aad 100644--- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp+++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp@@ -991,6 +991,7 @@ IR::AbstractSyntaxList BuildASL(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Statement& root{goto_pass.RootStatement()};IR::AbstractSyntaxList syntax_list;TranslatePass{inst_pool, block_pool, stmt_pool, env, root, syntax_list, host_info};+ stmt_pool.ReleaseContents();return syntax_list;}