mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-11 08:07:11 +02:00
Release the null lightweight object references as well.
This commit is contained in:
1 parent
b642e233a7
commit
e8027dcb3d
7 files changed
+15
-8
No files matched your search
@@ -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