Fix. Cleanup socket callback.

This commit is contained in:
Alexey Melnichuk 2014-12-22 11:55:00 +04:00
parent 8676dc07da
commit eb21f4f76f

View File

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