lua-users home
lua-l archive

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



On 13 Mar 2012, at 01:13, Xavier Wang wrote:

then how to store this structure? if i using malloc, then when i free this structure? if i use userdata, when i unanchor it?

Free it when you have unregistered the callbacks for the c library, and have closed the lua state.

Kev