[PR #1199] [MERGED] Properly manage teardown state in TermControl #24517

Open
opened 2026-01-31 09:03:46 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1199
Author: @DHowett-MSFT
Created: 6/11/2019
Status: Merged
Merged: 6/11/2019
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/stopcrashingman


📝 Commits (2)

  • 7df6199 Only read the focused control title if there is one
  • 1fb3513 Properly manage teardown state in TermControl

📊 Changes

3 files changed (+51 additions, -33 deletions)

View changed files

📝 src/cascadia/TerminalApp/App.cpp (+4 -1)
📝 src/cascadia/TerminalControl/TermControl.cpp (+38 -31)
📝 src/cascadia/TerminalControl/TermControl.h (+9 -1)

📄 Description

Summary of the Pull Request

This commit introduces a few automatic event revokers and implements staged Close for TermControl's constituent components. It also fixes an issue in reading the title from a tab with no focused control.

Fixes #1198, #1188.

PR Checklist

Validation Steps Performed

I've opened and closed a number of tabs at a number of speeds, I can neither get it to crash nor get it to leak console hosts and shells and a bunch of memory.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/1199 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 6/11/2019 **Status:** ✅ Merged **Merged:** 6/11/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/stopcrashingman` --- ### 📝 Commits (2) - [`7df6199`](https://github.com/microsoft/terminal/commit/7df6199721beaf47febf45a99871e6d9f88658bc) Only read the focused control title if there is one - [`1fb3513`](https://github.com/microsoft/terminal/commit/1fb351362c6eb9879f6e3a8faa6ed4f9a9ba8326) Properly manage teardown state in TermControl ### 📊 Changes **3 files changed** (+51 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/App.cpp` (+4 -1) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+38 -31) 📝 `src/cascadia/TerminalControl/TermControl.h` (+9 -1) </details> ### 📄 Description ## Summary of the Pull Request This commit introduces a few automatic event revokers and implements staged Close for TermControl's constituent components. It also fixes an issue in reading the title from a tab with no focused control. Fixes #1198, #1188. ## PR Checklist * [x] Closes #1198, #1188 * [x] CLA signed * [x] Tests added/passed/manually tested ## Validation Steps Performed I've opened and closed a number of tabs at a number of speeds, I can neither get it to crash _nor_ get it to leak console hosts and shells and a bunch of memory. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:03:46 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24517