Remove script object ref counting type
This commit is contained in:
parent
7b72219bf4
commit
efcd3a6c07
|
@ -336,7 +336,6 @@ asCScriptObject::asCScriptObject(asCObjectType *ot, bool doInitialize)
|
||||||
{
|
{
|
||||||
refCount.set(1);
|
refCount.set(1);
|
||||||
objType = ot;
|
objType = ot;
|
||||||
objType->AddRef();
|
|
||||||
isDestructCalled = false;
|
isDestructCalled = false;
|
||||||
extra = 0;
|
extra = 0;
|
||||||
hasRefCountReachedZero = false;
|
hasRefCountReachedZero = false;
|
||||||
|
@ -481,7 +480,6 @@ asCScriptObject::~asCScriptObject()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
objType->Release();
|
|
||||||
objType = 0;
|
objType = 0;
|
||||||
|
|
||||||
// Something is really wrong if the refCount is not 0 by now
|
// Something is really wrong if the refCount is not 0 by now
|
||||||
|
|
Loading…
Reference in New Issue