clean cb ref object in multi object

This commit is contained in:
zhaozg 2014-08-30 08:37:10 +08:00
parent d7cfd66017
commit f2a0b970fa

View File

@ -50,7 +50,9 @@ static int lcurl_multi_cleanup(lua_State *L){
luaL_unref(L, LCURL_LUA_REGISTRY, p->h_ref);
p->h_ref = LUA_NOREF;
}
luaL_unref(L, LCURL_LUA_REGISTRY, p->tm.cb_ref);
luaL_unref(L, LCURL_LUA_REGISTRY, p->tm.ud_ref);
p->tm.cb_ref = p->tm.ud_ref = LUA_NOREF;
return 0;
}