diff options
author | 2015-11-18 10:24:43 -0800 | |
---|---|---|
committer | 2015-11-18 10:24:43 -0800 | |
commit | 055b5f352854aaa92289bcd320a393d201ebf26b (patch) | |
tree | fef4985987c931d4705c012700c7d4fdac0bbd82 | |
parent | 9231730cd0e285373afd73331168b289309ebee4 (diff) |
Remove incorrect iterator increment
Erase already goes to the next element.
Bug: 25738102
Change-Id: Iea31a7fb27ce9f810acf019a7b59dda7704b8f26
-rw-r--r-- | runtime/lambda/box_table.cc | 2 |
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; |