Fixing class instances not properly released when accessed via 'bhl_native_prefix'

This commit is contained in:
Pavel Shevaev 2023-03-16 15:43:30 +03:00
parent 62912023dc
commit 3bb1c5e90a
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{% for m in o.getfuncs %}
{% if has_token(m, 'bhl_native_prefix') %}
{{ _self.reg_func_native(m, 'cl', '(('~token_or(o, 'bhl_native_class', o.name)~')stack.Pop()._obj).') }}
{{ _self.reg_func_native(m, 'cl', '(('~token_or(o, 'bhl_native_class', o.name)~')stack.PopRelease()._obj).') }}
{% else %}
{{ _self.method_partial(o, m, 'cl') }}
{% endif %}