1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 09:16:38 +02:00

fixup part of 379b2c, dont use iterators after theyre erased

This commit is contained in:
Adam
2012-12-28 11:17:01 -05:00
parent b591e8cdc8
commit ae6ddf295a
+1 -4
View File
@@ -191,10 +191,7 @@ class DBMySQL : public Module, public Pipe
clear_null = true;
std::map<unsigned int, Serializable *>::iterator it = obj->objects.find(id);
if (it != obj->objects.end())
{
obj->objects.erase(it);
it->second->Destroy(); // This also tries to remove this object from the map
}
it->second->Destroy(); // This also removes this object from the map
}
else
{