Bug 643674 - firefox 4 crash [@ nsCookieService::HandleCorruptDB(DBState*) ] and t [@ nsCookieService::HandleCorruptDB ]; r=sdwilsh

This commit is contained in:
Ehsan Akhgari 2011-03-28 16:24:05 -04:00
parent d5dcbf68a6
commit 795cbd583e

View File

@ -1257,7 +1257,9 @@ nsCookieService::HandleCorruptDB(DBState* aDBState)
case DBState::REBUILDING: {
// We had an error while rebuilding the DB. Game over. Close the database
// and let the close handler do nothing; then we'll move it out of the way.
mDefaultDBState->dbConn->AsyncClose(mDefaultDBState->closeListener);
if (mDefaultDBState->dbConn) {
mDefaultDBState->dbConn->AsyncClose(mDefaultDBState->closeListener);
}
CloseDefaultDBConnection();
break;
}