while #sample_table > 0 do
table.remove(sample_table, 1)
end
Creating small games might not be an issue with the former but I assume that it produces some memory leaks or something, and that's why I should be doing the latter. Is my reasoning correct, or any of you have some better suggestions?
I would just keep doing what you were... You're actually creating more work for LOVE. Either re-declare the table or set nil for garbage collection to handle.