fix Lua crash (run Lua script, close Lua console, open different ROM)
This commit is contained in:
parent
166c50b6cf
commit
12ef0fe35b
|
@ -166,6 +166,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
public override void Close()
|
||||
{
|
||||
RegisteredFunctions.Clear(GlobalWin.Emulator); // TODO: don't use globals
|
||||
ScriptList.Clear();
|
||||
FormsLibrary.DestroyAll();
|
||||
_lua.Close();
|
||||
_lua = new Lua();
|
||||
|
|
Loading…
Reference in New Issue