From b5a36a543080ed1a6fee6e9e67de0c8c5f005cf8 Mon Sep 17 00:00:00 2001 From: yamashi Date: Sun, 8 Aug 2021 13:02:51 +0200 Subject: [PATCH] Update LuaSandbox.cpp --- src/scripting/LuaSandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/LuaSandbox.cpp b/src/scripting/LuaSandbox.cpp index be9698c9..6b2f2509 100644 --- a/src/scripting/LuaSandbox.cpp +++ b/src/scripting/LuaSandbox.cpp @@ -32,7 +32,7 @@ static constexpr const char* s_cGlobalObjectsWhitelist[] = "unpack", "xpcall", - //"collectgarbage", //< Good for testing memory leaks and ref counters: `collectgarbage("collect")` + "collectgarbage", //< Good for testing memory leaks and ref counters: `collectgarbage("collect")`, also used for forcing the release of some refs }; static constexpr const char* s_cGlobalTablesWhitelist[] =