diff options
author | Adam <Adam@anope.org> | 2012-12-27 21:43:19 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-12-28 10:43:30 -0500 |
commit | 379b2ccf92b6124f2026a5ec683cfc98f08e223a (patch) | |
tree | 9cec160f53a579a83950656d5978301823f4312d /modules/database/db_sql_live.cpp | |
parent | 3fb4cf56b651eb500b1bbafb14c0d328d81e1f3c (diff) |
The timestamp column in SQL should actually be null sometimes, and fixed some valgrind errors with db_sql_live
Diffstat (limited to 'modules/database/db_sql_live.cpp')
-rw-r--r-- | modules/database/db_sql_live.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp index 8d8836055..0461e40b9 100644 --- a/modules/database/db_sql_live.cpp +++ b/modules/database/db_sql_live.cpp @@ -192,8 +192,8 @@ class DBMySQL : public Module, public Pipe std::map<unsigned int, Serializable *>::iterator it = obj->objects.find(id); if (it != obj->objects.end()) { - it->second->Destroy(); obj->objects.erase(it); + it->second->Destroy(); // This also tries to remove this object from the map } } else |