Browse Source

Fix memory leak in Dictionary.

Eugene Kozlov 9 years ago
parent
commit
9c6e6071b2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      Source/Urho3D/AngelScript/Addons.cpp

+ 0 - 1
Source/Urho3D/AngelScript/Addons.cpp

@@ -2086,7 +2086,6 @@ bool CScriptDictValue::Get(asIScriptEngine *engine, void *value, int typeId) con
         if ((m_typeId & asTYPEID_MASK_OBJECT) &&
             engine->RefCastObject(m_valueObj, engine->GetObjectTypeById(m_typeId), engine->GetObjectTypeById(typeId), &cast) >= 0)
         {
-            engine->AddRefScriptObject(m_valueObj, engine->GetObjectTypeById(m_typeId));
             *(void**)value = m_valueObj;
 
             return true;