Update lcmulti.c
This commit is contained in:
parent
f2a0b970fa
commit
8927ced6dc
@ -50,6 +50,7 @@ static int lcurl_multi_cleanup(lua_State *L){
|
|||||||
luaL_unref(L, LCURL_LUA_REGISTRY, p->h_ref);
|
luaL_unref(L, LCURL_LUA_REGISTRY, p->h_ref);
|
||||||
p->h_ref = LUA_NOREF;
|
p->h_ref = LUA_NOREF;
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
p->tm.cb_ref = p->tm.ud_ref = LUA_NOREF;
|
p->tm.cb_ref = p->tm.ud_ref = LUA_NOREF;
|
||||||
@ -432,4 +433,4 @@ void lcurl_multi_initlib(lua_State *L, int nup){
|
|||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
|
||||||
lcurl_util_set_const(L, lcurl_multi_opt);
|
lcurl_util_set_const(L, lcurl_multi_opt);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user