Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: Source/WebCore/storage/IDBLevelDBBackingStore.cpp

Issue 7457026: Merge 91721 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/leveldb/LevelDBDatabase.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/storage/IDBLevelDBBackingStore.cpp
===================================================================
--- Source/WebCore/storage/IDBLevelDBBackingStore.cpp (revision 92019)
+++ Source/WebCore/storage/IDBLevelDBBackingStore.cpp (working copy)
@@ -126,6 +126,10 @@
IDBLevelDBBackingStore::~IDBLevelDBBackingStore()
{
m_factory->removeIDBBackingStore(m_identifier);
+
+ // m_db's destructor uses m_comparator. The order of destruction is important.
+ m_db.clear();
+ m_comparator.clear();
}
PassRefPtr<IDBBackingStore> IDBLevelDBBackingStore::open(SecurityOrigin* securityOrigin, const String& pathBaseArg, int64_t maximumSize, const String& fileIdentifier, IDBFactoryBackendImpl* factory)
« no previous file with comments | « Source/WebCore/platform/leveldb/LevelDBDatabase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698