From efcd3a6c076444224d8bca2d6cb12a9ae42a69c2 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 6 Mar 2022 16:17:27 +0100 Subject: [PATCH] Remove script object ref counting type --- angelscript/source/as_scriptobject.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/angelscript/source/as_scriptobject.cpp b/angelscript/source/as_scriptobject.cpp index 260792e..17cabd6 100644 --- a/angelscript/source/as_scriptobject.cpp +++ b/angelscript/source/as_scriptobject.cpp @@ -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