summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-11-18 10:24:43 -0800
committer Mathieu Chartier <mathieuc@google.com> 2015-11-18 10:24:43 -0800
commit055b5f352854aaa92289bcd320a393d201ebf26b (patch)
treefef4985987c931d4705c012700c7d4fdac0bbd82
parent9231730cd0e285373afd73331168b289309ebee4 (diff)
Remove incorrect iterator increment
Erase already goes to the next element. Bug: 25738102 Change-Id: Iea31a7fb27ce9f810acf019a7b59dda7704b8f26
-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;