Closed markmeeus closed 9 months ago
This is a tricky one. I will try to find out what is going on here and fix it. What I don't straight off understand why it hasn't been detected earlierl
@markmeeus It took a while, quite a while actually, but this has now been fixed. It in the latest commit to develop, d70abaa. At least you example code runs.
That's great! Thanks.
The following Lua script creates a function and stores that function in a global table
rememberedFunctions
This anonymous function is created with an environment to hold an argument from the outer function.When calling
gc()
, the garbage collector removes this env data, when the function is later called the operation push_env_var (to add the arg to the string) it crashes with the following error.