Clear default driver reference if unloaded (bug 5934, r=dvander).
This commit is contained in:
parent
55b77a1925
commit
5149205109
@ -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!
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user