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

Switch Destroy methods to delete

This commit is contained in:
Adam
2013-02-14 20:58:01 -05:00
parent 391f2822c8
commit fc1d7ea89b
32 changed files with 62 additions and 62 deletions
+2 -2
View File
@@ -195,7 +195,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())
it->second->Destroy(); // This also removes this object from the map
delete it->second; // This also removes this object from the map
}
else
{
@@ -225,7 +225,7 @@ class DBMySQL : public Module, public Pipe
else
{
delete data;
s->Destroy();
delete s;
}
}
}