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) |