diff --git a/tests/test-leaks.lua b/tests/test-leaks.lua index d12d652e..77ea7b64 100644 --- a/tests/test-leaks.lua +++ b/tests/test-leaks.lua @@ -29,6 +29,7 @@ local function collectable(a, b, c, d, e, f, g, h, last) end collectgarbage("collect") collectgarbage("collect") + collectgarbage("collect") -- Check if the table is now empty for _, v in pairs(objs) do print("Some object was not garbage collected!")