Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: runtime/vm/kernel.cc

Issue 2632183002: Debugging in kernel shaping up. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698