lua-users home
lua-l archive

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


>  lua_setgcthreshold(L, 0);  // collected garbage
>  lua_close(L);

There's no need to explicitly collect garbage here because lua_close does it
(it frees all memory used by L).
--lhf