lua-users home
lua-l archive

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


(Lua 5.0) If I hold a reference to an object in the registry (lua_ref)
and then I release the object (lua_unref), then I call the garbage
collector, why might the object not be released? I have other objects
that I'm doing the same thing with that get released but some reason I
have a function callback that only gets release later, and calling GC
several times doesn't free the memory when the object is unref'd. I'm
pretty sure nothing else is referring the object, its collection seems
to be delayed for some reason.

Any clues would be greatly appreciated. Thanks,

Nick