fix(compiler-cli): fix memory leaks in watch mode (#18961)

PR Close #18961
This commit is contained in:
Chuck Jazdzewski 2017-08-30 14:26:19 -07:00 committed by Jason Aden
parent 56b751ead5
commit 83e5deb988
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class AngularCompilerProgram implements Program {
constructor(
private rootNames: string[], private options: CompilerOptions, private host: CompilerHost,
private oldProgram?: Program) {
oldProgram?: Program) {
if (options.flatModuleOutFile && !options.skipMetadataEmit) {
const {host: bundleHost, indexName, errors} = createBundleIndexHost(options, rootNames, host);
if (errors) {