Lua-Class-System
Lua-Class-System copied to clipboard
Garbage collection and memory leak issue
Tim Panec says :
In the lcs library it looks like _register is set up as weak table: local _register = setmetatable({ class = {}, object = {}},{__mode='k'})
However all entries are put in the class or object tables, which are not weak tables. Is this intended? What is the correct way to remove an object to prevent a memory leak?
Thanks for any insight you can provide!