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