Index: src/optimizing-compiler-thread.cc |
diff --git a/src/optimizing-compiler-thread.cc b/src/optimizing-compiler-thread.cc |
index dbf9ad7cdcdb57e2455fb89d58cf87b3d4227197..a4300f5e7c43dfcf3c42120ad3f385b9fd15c201 100644 |
--- a/src/optimizing-compiler-thread.cc |
+++ b/src/optimizing-compiler-thread.cc |
@@ -115,8 +115,11 @@ void OptimizingCompilerThread::Stop() { |
InstallOptimizedFunctions(); |
} else { |
OptimizingCompiler* optimizing_compiler; |
+ // The optimizing compiler is allocated in the CompilationInfo's zone. |
while (input_queue_.Dequeue(&optimizing_compiler)) { |
- // The optimizing compiler is allocated in the CompilationInfo's zone. |
+ delete optimizing_compiler->info(); |
+ } |
+ while (output_queue_.Dequeue(&optimizing_compiler)) { |
delete optimizing_compiler->info(); |
} |
} |