lua-users home
lua-l archive

Re: LuaThread leaks

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Lua 5.0.2 doesn't have a standard way to hook the lua_close.
You can create some udata, add it to the registry, and set a GC metamethod
for it, which will be called when lua_close is called.
Libraries that need complex clean-up call also use this technique.
--lhf

AltStyle によって変換されたページ (->オリジナル) /