Clear default driver reference if unloaded (bug 5934, r=dvander).

This commit is contained in:
Peace-Maker 2014-05-09 10:36:58 -07:00
parent 55b77a1925
commit 5149205109

View File

@ -353,6 +353,12 @@ void DBManager::RemoveDriver(IDBDriver *pDriver)
}
}
/* Someone unloaded the default driver? Silly.. */
if (pDriver == m_pDefault)
{
m_pDefault = NULL;
}
/* Now that the driver is gone, we have to test the think queue.
* Whatever happens therein is up to the db op!
*/