Index: Source/WebCore/platform/leveldb/LevelDBDatabase.cpp |
=================================================================== |
--- Source/WebCore/platform/leveldb/LevelDBDatabase.cpp (revision 92019) |
+++ Source/WebCore/platform/leveldb/LevelDBDatabase.cpp (working copy) |
@@ -93,6 +93,9 @@ |
LevelDBDatabase::~LevelDBDatabase() |
{ |
+ // m_db's destructor uses m_comparatorAdapter; order of deletion is important. |
+ m_db.clear(); |
+ m_comparatorAdapter.clear(); |
} |
PassOwnPtr<LevelDBDatabase> LevelDBDatabase::open(const String& fileName, const LevelDBComparator* comparator) |