[PR #6229] Update wil. Fixes GDI handle leak #26619

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

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

State: closed
Merged: Yes


Summary of the Pull Request

When resizing the window title, a GDI object would be leaked. This has to do with our island message handler using wil to track these objects and wil having a bug.

References

microsoft/wil#100

PR Checklist

Validation Steps Performed

  • Added the GDI Objects column to Task Manager, set the Terminal to use the titleWidth size tabs, then changed the title a bunch with PowerShell. Confirmed repro before (increasing GDI count). Confirmed it's gone after (no change to object count).
**Original Pull Request:** https://github.com/microsoft/terminal/pull/6229 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request When resizing the window title, a GDI object would be leaked. This has to do with our island message handler using `wil` to track these objects and `wil` having a bug. ## References microsoft/wil#100 ## PR Checklist * [x] Closes #5949 * [x] I work here. * [x] Tested manually * [x] Doc not required. * [x] Am core contributor. ## Validation Steps Performed * [x] Added the GDI Objects column to Task Manager, set the Terminal to use the `titleWidth` size tabs, then changed the title a bunch with PowerShell. Confirmed repro before (increasing GDI count). Confirmed it's gone after (no change to object count).
claunia added the pull-request label 2026-01-31 09:17:10 +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#26619