[PR #14228] Fix circular TermControl reference #30021

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

Original Pull Request: https://github.com/microsoft/terminal/pull/14228

State: closed
Merged: Yes


This regression was introduced in b3c9f01. Since TermControl is the XAML
object that owns its scrollbar and the scrollbar's VisualStateManager
a strong reference back to the TermControl results in a circular reference.

Validation Steps Performed

  • Set a breakpoint on TermControl::~TermControl()
  • Breakpoint hits on tab close
**Original Pull Request:** https://github.com/microsoft/terminal/pull/14228 **State:** closed **Merged:** Yes --- This regression was introduced in b3c9f01. Since `TermControl` is the XAML object that owns its scrollbar and the scrollbar's `VisualStateManager` a strong reference back to the `TermControl` results in a circular reference. ## Validation Steps Performed * Set a breakpoint on `TermControl::~TermControl()` * Breakpoint hits on tab close ✅
claunia added the pull-request label 2026-01-31 09:38:12 +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#30021