lua-users home
lua-l archive

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


Stukov wrote:
> And one more question: where should I call luai_userstatefree
> function?
> luai_userstateopen function is called from lua_newstate.
> May be place luai_userstatefree in lua_close?

You don't need it for LuaThreads (though a future version could
probably make good use of it). AFAIK it's only used by Coco.

But you are right, luai_userstatefree() is missing in luaE_freethread.
This is a known bug in Lua 5.1 alpha: