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

Unified Diff: pkg/front_end/test/fasta/testing/suite.dart

Issue 2940643002: Fix memory leak in test. (Closed)
Patch Set: Take II Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/fasta/testing/suite.dart
diff --git a/pkg/front_end/test/fasta/testing/suite.dart b/pkg/front_end/test/fasta/testing/suite.dart
index c799b1f432d433cc20a0cbbaa79f444ffa8e31c7..1303ae9172af777810ed797291a06fb23619e96e 100644
--- a/pkg/front_end/test/fasta/testing/suite.dart
+++ b/pkg/front_end/test/fasta/testing/suite.dart
@@ -268,6 +268,7 @@ class Outline extends Step<TestDescription, Program, FastaContext> {
} on InputError catch (e, s) {
return fail(null, e.error, s);
}
+ context.programToTarget.clear();
context.programToTarget[p] = sourceTarget;
return pass(p);
}
@@ -280,6 +281,7 @@ class Transform extends Step<Program, Program, FastaContext> {
Future<Result<Program>> run(Program program, FastaContext context) async {
KernelTarget sourceTarget = context.programToTarget[program];
+ context.programToTarget.remove(program);
TestVmFastaTarget backendTarget = sourceTarget.backendTarget;
backendTarget.enabled = true;
try {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698