Bug 973780 - Don't double-unregister during IDB teardown. r=khuey

This commit is contained in:
Bobby Holley 2014-02-21 11:35:49 -08:00
parent 71122e3004
commit 47da093a84

View File

@ -394,7 +394,7 @@ IDBDatabase::OnUnlink()
// No reason for the QuotaManager to track us any longer.
QuotaManager* quotaManager = QuotaManager::Get();
if (quotaManager) {
if (mRegistered && quotaManager) {
quotaManager->UnregisterStorage(this);
// Don't try to unregister again in the destructor.