summaryrefslogtreecommitdiffstats
path: root/content/browser/indexed_db/indexed_db_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/indexed_db/indexed_db_factory.cc')
-rw-r--r--content/browser/indexed_db/indexed_db_factory.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/indexed_db/indexed_db_factory.cc b/content/browser/indexed_db/indexed_db_factory.cc
index 7be451f..1a83332 100644
--- a/content/browser/indexed_db/indexed_db_factory.cc
+++ b/content/browser/indexed_db/indexed_db_factory.cc
@@ -131,6 +131,7 @@ void IndexedDBFactory::GetDatabaseNames(
}
callbacks->OnSuccess(backing_store->GetDatabaseNames());
+ backing_store = NULL;
ReleaseBackingStore(origin_url, false /* immediate */);
}
@@ -182,6 +183,8 @@ void IndexedDBFactory::DeleteDatabase(
database_map_[unique_identifier] = database;
database->DeleteDatabase(callbacks);
database_map_.erase(unique_identifier);
+ database = NULL;
+ backing_store = NULL;
ReleaseBackingStore(origin_url, false /* immediate */);
}