Skip to content

Commit b5a36a5

Browse files
committed
Update LuaSandbox.cpp
1 parent 167290a commit b5a36a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripting/LuaSandbox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static constexpr const char* s_cGlobalObjectsWhitelist[] =
3232
"unpack",
3333
"xpcall",
3434

35-
//"collectgarbage", //< Good for testing memory leaks and ref counters: `collectgarbage("collect")`
35+
"collectgarbage", //< Good for testing memory leaks and ref counters: `collectgarbage("collect")`, also used for forcing the release of some refs
3636
};
3737

3838
static constexpr const char* s_cGlobalTablesWhitelist[] =

0 commit comments

Comments
 (0)