mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6064 from samuele3hu/develop_socket
ccvector_to_luaval would lead to memory leak because call the `retain`
This commit is contained in:
commit
9a53423e6b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue