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

Unified Diff: Source/WebCore/platform/leveldb/LevelDBTransaction.cpp

Issue 7154001: Merge 87911 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/leveldb/LevelDBTransaction.cpp
===================================================================
--- Source/WebCore/platform/leveldb/LevelDBTransaction.cpp (revision 88755)
+++ Source/WebCore/platform/leveldb/LevelDBTransaction.cpp (working copy)
@@ -53,11 +53,16 @@
TreeType::Iterator iterator;
iterator.start_iter_least(m_tree);
+ Vector<AVLTreeNode*> nodes;
+
while (*iterator) {
- delete *iterator;
+ nodes.append(*iterator);
++iterator;
}
m_tree.purge();
+
+ for (size_t i = 0; i < nodes.size(); ++i)
+ delete(nodes[i]);
}
LevelDBTransaction::~LevelDBTransaction()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698