Lua-Class-System icon indicating copy to clipboard operation
Lua-Class-System copied to clipboard

Garbage collection and memory leak issue

Open Yonaba opened this issue 9 years ago • 0 comments

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!

Yonaba avatar Jul 21 '14 20:07 Yonaba