mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:56:40 +02:00
The timestamp column in SQL should actually be null sometimes, and fixed some valgrind errors with db_sql_live
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user