local Something = {}
function Something:Create(a, b)
local object =
{
a = a,
b = b
}
function object:Delete()
this = nil
end
setmetatable(object, self)
self.__index = self
return object
end
hello_there = Something:Create(1, 2)
print(hello_there) -- 0x7efd37cc66a0
hello_there.Delete()
print(hello_there) -- 0x7efd37cc66a0
Как память освободить?