mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-05 15:26:19 +00:00
Fix various memory leaks with RAII
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user