I fear a memory leak -> better solution required...
This commit is contained in:
parent
53fb06b137
commit
4a86ccda4f
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue