From 4f7144e5133b9d5071007900302a83d82f0c18c8 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 24 Dec 2010 19:07:47 -0500 Subject: Made clearing SXLines remove the XLine from the IRCd too (cherry picked from commit 86900175c83375e4d3ad21749d8d6b65cc9f6732) --- src/operserv.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/operserv.cpp b/src/operserv.cpp index 82a606b90..a1b44ea27 100644 --- a/src/operserv.cpp +++ b/src/operserv.cpp @@ -324,9 +324,8 @@ XLine *XLineManager::GetEntry(unsigned index) */ void XLineManager::Clear() { - for (std::vector::iterator it = this->XLines.begin(), it_end = this->XLines.end(); it != it_end; ++it) - delete *it; - this->XLines.clear(); + while (!this->XLines.empty()) + this->DelXLine(this->XLines.front()); } /** Add an entry to this XLine Manager -- cgit