summaryrefslogtreecommitdiff
path: root/modules/database/db_sql_live.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-14 20:58:01 -0500
committerAdam <Adam@anope.org>2013-02-14 20:58:01 -0500
commitfc1d7ea89b5beed96022499fe7fa86bef7cf2aad (patch)
tree0208b9f5e153191742d15c51d6ca98737d8f7eb9 /modules/database/db_sql_live.cpp
parent391f2822c8f6da7d6ffa8114817a8baf2aa265d5 (diff)
Switch Destroy methods to delete
Diffstat (limited to 'modules/database/db_sql_live.cpp')
-rw-r--r--modules/database/db_sql_live.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp
index ae37a7a9b..d50653912 100644
--- a/modules/database/db_sql_live.cpp
+++ b/modules/database/db_sql_live.cpp
@@ -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;
}
}
}