From 379b2ccf92b6124f2026a5ec683cfc98f08e223a Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 27 Dec 2012 21:43:19 -0500 Subject: The timestamp column in SQL should actually be null sometimes, and fixed some valgrind errors with db_sql_live --- modules/database/db_sql_live.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/database') 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::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 -- cgit