diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 0a33c08f1..2af4fd3a4 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -3560,9 +3560,9 @@ const char *CServer::GetAnnouncementLine(char const *pFileName) std::vector v; char *pLine; - CLineReader *lr = new CLineReader(); - lr->Init(File); - while((pLine = lr->Get())) + CLineReader lr; + lr.Init(File); + while((pLine = lr.Get())) if(str_length(pLine)) if(pLine[0] != '#') v.push_back(pLine);