From 75cd2c8c30a107527c5b84a90c47647e580bb620 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 18 Nov 2024 19:30:38 +0300 Subject: [PATCH] Adding missing Dispose calls for read Args --- tpl/bhl_bind_macro.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tpl/bhl_bind_macro.twig b/tpl/bhl_bind_macro.twig index e7cf98c..10653c0 100644 --- a/tpl/bhl_bind_macro.twig +++ b/tpl/bhl_bind_macro.twig @@ -173,6 +173,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {%- else ~%} var args = Script_{{o.name|norm_name}}.Method_{{m.name}}.ReadArgs(frm, stack, args_info); Script_{{o.name|norm_name}}.Method_{{m.name}}.Exec(frm, args {{_self.out_results(m)}}); + args.Dispose(); {{_self.return_method_out_results(o, m)}} return null; {%- endif ~%} @@ -198,6 +199,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack var args = Script_{{o.name|norm_name}}.Method_{{m.name}}.ReadArgs(frm, stack, args_info); Script_{{o.name|norm_name}}.Method_{{m.name}}.Exec(frm, args {{_self.out_results(m)}}); + args.Dispose(); {{_self.return_method_out_results(o, m)}} return null;