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;