I fear a memory leak -> better solution required...

This commit is contained in:
Volker Fischer 2019-04-12 18:48:06 +02:00
parent 53fb06b137
commit 4a86ccda4f

View File

@ -342,10 +342,6 @@ void CServerLogging::AddNewConnection ( const QHostAddress& ClientInetAddr )
const QString strLogStr = CurTimeDatetoLogString() + ", " +
ClientInetAddr.toString() + ", connected";
QTextStream* tsConsoleStream = (new ConsoleWriterFactory())->get();
(*tsConsoleStream) << strLogStr << endl; // on console
*this << strLogStr; // in log file
// add element to history
@ -357,10 +353,6 @@ void CServerLogging::AddServerStopped()
const QString strLogStr = CurTimeDatetoLogString() + ",, server stopped "
"-------------------------------------";
QTextStream* tsConsoleStream = (new ConsoleWriterFactory())->get();
(*tsConsoleStream) << strLogStr << endl; // on console
*this << strLogStr; // in log file
// add element to history and update on server stop