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

Unified Diff: Source/WebCore/platform/leveldb/LevelDBDatabase.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 | « no previous file | Source/WebCore/storage/IDBLevelDBBackingStore.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | Source/WebCore/storage/IDBLevelDBBackingStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698