mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Release the null lightweight object references as well.
This commit is contained in:
@ -58,10 +58,11 @@ static bool OnSquirrelLoad()
|
||||
return false;
|
||||
}
|
||||
// Prevent common null objects from using dead virtual machines
|
||||
NullArray() = Array();
|
||||
NullTable() = Table();
|
||||
NullObject() = Object();
|
||||
NullFunction() = Function();
|
||||
NullObject().Release();
|
||||
NullTable().Release();
|
||||
NullArray().Release();
|
||||
NullLightObj().Release();
|
||||
NullFunction().ReleaseGently();
|
||||
// Register the module API
|
||||
if (RegisterAPI(DefaultVM::Get()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user