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:
James Chen 2014-03-31 14:09:15 +08:00
commit 9a53423e6b
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;
}
}