Skip to content

Commit

Permalink
Update LuaSandbox.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Aug 8, 2021
1 parent 167290a commit b5a36a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/LuaSandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
Expand Down

0 comments on commit b5a36a5

Please sign in to comment.