Skip to content

Commit

Permalink
VOXELGENERATOR: fixed missing context shutdown and unfinished coroutines
Browse files Browse the repository at this point in the history
which might lead to a crash whenever the dtor of the LUAApi was executed
  • Loading branch information
mgerhardy committed Jan 13, 2025
1 parent a6fa616 commit 6ac0f18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/voxelgenerator/LUAApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,7 @@ ScriptState LUAApi::update(double nowSeconds) {
void LUAApi::shutdown() {
lua_gc(_lua, LUA_GCCOLLECT, 0);
_noise.shutdown();
_lua.resetState();
}

bool LUAApi::argumentInfo(const core::String& luaScript, core::DynamicArray<LUAParameterDescription>& params) {
Expand Down

0 comments on commit 6ac0f18

Please sign in to comment.