Made VScript data variant returned in function stubs free itself

This commit is contained in:
Blixibon 2021-04-22 11:37:46 -05:00
parent 4cf360b259
commit caaf8836a4

View File

@ -1368,6 +1368,8 @@ SQInteger function_stub(HSQUIRRELVM vm)
PushVariant(vm, retval);
retval.Free();
return pFunc->m_desc.m_ReturnType != FIELD_VOID;
}