diff options
Diffstat (limited to 'modules/database/db_sql_live.cpp')
-rw-r--r-- | modules/database/db_sql_live.cpp | 4 |
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; } } } |