Merge pull request #279172 from SimonSiefke/fix/memory-leak-terminal-process-3

fix: memory leak in terminal process
This commit is contained in:
Daniel Imms 2025-12-09 06:28:19 -08:00 committed by GitHub
commit dcb70268fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,6 +201,10 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
this._titleInterval = undefined;
}
}));
this._register(toDisposable(() => {
this._ptyProcess = undefined;
this._processStartupComplete = undefined;
}));
}
async start(): Promise<ITerminalLaunchError | ITerminalLaunchResult | undefined> {