Close a lua instance before creating a new one, fixes #455

This commit is contained in:
adelikat 2016-10-06 15:17:05 -05:00
parent ef6c9131c6
commit e281950902
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ namespace BizHawk.Client.EmuHawk
public void Close() public void Close()
{ {
FormsLibrary.DestroyAll(); FormsLibrary.DestroyAll();
_lua.Close();
_lua = new Lua(); _lua = new Lua();
GuiLibrary.Dispose(); GuiLibrary.Dispose();
} }