Fix various memory leaks with RAII

This commit is contained in:
Lion Kortlepel
2020-11-04 13:10:45 +01:00
parent 5452aeb558
commit f2d87078ae
4 changed files with 512 additions and 408 deletions

View File

@@ -130,9 +130,7 @@ void SetupConsole() {
}
void ConsoleInit() {
SetupConsole();
LuaConsole = new Lua();
LuaConsole->Console = true;
LuaConsole->Init();
LuaConsole = new Lua(true);
printf("> ");
std::thread In(ReadCin);
In.detach();