summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-11-18 20:06:43 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-18 20:06:43 +0000
commita341377bd5eb7cef471cb29a382e1614523e5a6c (patch)
treefef4985987c931d4705c012700c7d4fdac0bbd82
parent9231730cd0e285373afd73331168b289309ebee4 (diff)
parent055b5f352854aaa92289bcd320a393d201ebf26b (diff)
Merge "Remove incorrect iterator increment"
-rw-r--r--runtime/lambda/box_table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lambda/box_table.cc b/runtime/lambda/box_table.cc
index 8eef10bbad..9918bb71f3 100644
--- a/runtime/lambda/box_table.cc
+++ b/runtime/lambda/box_table.cc
@@ -62,7 +62,7 @@ BoxTable::BoxTable()
BoxTable::~BoxTable() {
// Free all the copies of our closures.
- for (auto map_iterator = map_.begin(); map_iterator != map_.end(); ++map_iterator) {
+ for (auto map_iterator = map_.begin(); map_iterator != map_.end(); ) {
std::pair<UnorderedMapKeyType, ValueType>& key_value_pair = *map_iterator;
Closure* closure = key_value_pair.first;