mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Finalize cdata before userdata when closing the state.
This commit is contained in:
parent
7498ee204e
commit
8ae38dc519
@ -225,8 +225,8 @@ static TValue *cpfinalize(lua_State *L, lua_CFunction dummy, void *ud)
|
||||
{
|
||||
UNUSED(dummy);
|
||||
UNUSED(ud);
|
||||
lj_gc_finalize_udata(L);
|
||||
lj_gc_finalize_cdata(L);
|
||||
lj_gc_finalize_udata(L);
|
||||
/* Frame pop omitted. */
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user