From fc1d7ea89b5beed96022499fe7fa86bef7cf2aad Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Feb 2013 20:58:01 -0500 Subject: Switch Destroy methods to delete --- modules/database/db_sql_live.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/database/db_sql_live.cpp') 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::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; } } } -- cgit