Skip to content

fix: clear Lua state after init errors - #73

Closed
nkbeast wants to merge 2 commits into
doriaxengine:mainfrom
nkbeast:fix/clear-lua-state-after-init-error
Closed

fix: clear Lua state after init errors#73
nkbeast wants to merge 2 commits into
doriaxengine:mainfrom
nkbeast:fix/clear-lua-state-after-init-error

Conversation

@nkbeast

@nkbeast nkbeast commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • route Lua entrypoint load and execution failures through LuaBinding::cleanup()
  • ensure the static Lua state pointer is cleared after the state is closed

Validation

  • exactly one direct lua_close remains, inside cleanup()
  • git diff --check — passed

@nkbeast nkbeast closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant