summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-24 19:07:47 -0500
committerAdam <Adam@anope.org>2010-12-24 20:09:49 -0500
commit4f7144e5133b9d5071007900302a83d82f0c18c8 (patch)
tree58c4959630e8d4009b7cc55385e2b4d7bd0017c6
parentc7a44bfd8eb98712a857beffec931e020a883161 (diff)
Made clearing SXLines remove the XLine from the IRCd too
(cherry picked from commit 86900175c83375e4d3ad21749d8d6b65cc9f6732)
-rw-r--r--src/operserv.cpp5
1 files changed, 2 insertions, 3 deletions
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<XLine *>::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