ccvector_to_luaval would lead to memory leak because call the `retain`

This commit is contained in:
samuele3hu 2014-03-31 12:04:47 +08:00
parent 056303ea35
commit c38388cc62
1 changed files with 0 additions and 1 deletions

View File

@ -253,7 +253,6 @@ void ccvector_to_luaval(lua_State* L,const cocos2d::Vector<T>& 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;
}
}