Chromium Code Reviews| Index: runtime/vm/kernel.cc |
| diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc |
| index 48dcbdeeb7b13cbe35a67e1a0ae8b3ec0d6494ec..60e8e0a67a5210eb03a3a028010b4ac07bafeb21 100644 |
| --- a/runtime/vm/kernel.cc |
| +++ b/runtime/vm/kernel.cc |
| @@ -1177,7 +1177,14 @@ void TypeParameter::VisitChildren(Visitor* visitor) { |
| } |
| -Program::~Program() {} |
| +Program::~Program() { |
| + while (valid_token_positions.length() > 0) { |
| + free(valid_token_positions.RemoveLast()); |
|
Kevin Millikin (Google)
2017/01/24 13:44:12
These are allocated with new and deallocated with
jensj
2017/01/25 12:52:22
Done.
|
| + } |
| + while (yield_token_positions.length() > 0) { |
| + free(yield_token_positions.RemoveLast()); |
| + } |
| +} |
| void Program::AcceptTreeVisitor(TreeVisitor* visitor) { |