*avoided a memory leak.
This commit is contained in:
parent
0767d1d225
commit
2613b890f9
@ -12680,6 +12680,8 @@ static int _core_neg(mb_interpreter_t* s, void** l) {
|
||||
_public_value_to_internal_object(&arg, &obj);
|
||||
if(obj.data.usertype_ref->calc_operators && obj.data.usertype_ref->calc_operators->neg) {
|
||||
mb_meta_operator_t neg = obj.data.usertype_ref->calc_operators->neg;
|
||||
mb_check(mb_ref_value(s, l, arg));
|
||||
mb_check(mb_unref_value(s, l, arg));
|
||||
mb_check(neg(s, l, &arg, 0, &arg));
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user