diff --git a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index d5f6d28670..3f12f1e767 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -65,9 +65,14 @@ namespace BizHawk.Client.EmuHawk if (AskSaveChanges()) { SaveColumnInfo(LuaListView, Settings.Columns); - CloseLua(); + GlobalWin.DisplayManager.ClearLuaSurfaces(); LuaImp.GuiLibrary.DrawFinish(); + foreach (var lua in _luaList) + { + lua.Thread.Dispose(); + } + CloseLua(); } else {