diff options
author | Adam <Adam@anope.org> | 2013-07-04 20:04:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-04 20:04:51 -0400 |
commit | 3fbdde5e18ff0cab01748711f661c8c76a2c8ffd (patch) | |
tree | bb8b32e527f83a8bc2e4ba1b486ce3ebff5525b2 /src | |
parent | 9f8b4ac382478d676d392b1649dadd7d360c2e42 (diff) |
Fix Extensible dtor
Diffstat (limited to 'src')
-rw-r--r-- | src/extensible.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extensible.cpp b/src/extensible.cpp index 9284bdbf2..d977e0b3c 100644 --- a/src/extensible.cpp +++ b/src/extensible.cpp @@ -24,8 +24,8 @@ ExtensibleBase::~ExtensibleBase() Extensible::~Extensible() { - for (std::set<ExtensibleBase *>::iterator it = extension_items.begin(); it != extension_items.end(); ++it) - (*it)->Unset(this); + while (!extension_items.empty()) + (*extension_items.begin())->Unset(this); } bool Extensible::HasExt(const Anope::string &name) const |