mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 17:52:08 -10:00
This can be used by the various subsystems for cleaning up Lua references before the Lua state is destroyed. This avoids having dangling references to the Lua state which would cause segfaults later on. The first subsystem to use this is the dynamic SEXP system which had dangling references due to keeping Lua references to the SEXP functions. This fixes #1954.