From c38388cc62b9315d124e40813d932d203f149573 Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Mon, 31 Mar 2014 12:04:47 +0800 Subject: [PATCH] ccvector_to_luaval would lead to memory leak because call the `retain` --- cocos/scripting/lua-bindings/manual/LuaBasicConversions.h | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h b/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h index bb32b16d9e..d1965e8dff 100644 --- a/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h +++ b/cocos/scripting/lua-bindings/manual/LuaBasicConversions.h @@ -253,7 +253,6 @@ void ccvector_to_luaval(lua_State* L,const cocos2d::Vector& inValue) int* luaID = (obj) ? &obj->_luaID : NULL; toluafix_pushusertype_ccobject(L, ID, luaID, (void*)obj,iter->second.c_str()); lua_rawset(L, -3); - obj->retain(); ++indexTable; } }