Remove script object ref counting type

This commit is contained in:
Deukhoofd 2022-03-06 16:17:27 +01:00
parent 7b72219bf4
commit efcd3a6c07
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 0 additions and 2 deletions

View File

@ -336,7 +336,6 @@ asCScriptObject::asCScriptObject(asCObjectType *ot, bool doInitialize)
{
refCount.set(1);
objType = ot;
objType->AddRef();
isDestructCalled = false;
extra = 0;
hasRefCountReachedZero = false;
@ -481,7 +480,6 @@ asCScriptObject::~asCScriptObject()
}
}
objType->Release();
objType = 0;
// Something is really wrong if the refCount is not 0 by now