-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update wil. Fixes GDI handle leak #6229
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didn't do this because of the SA miss.
Missed a spot it looks like. This actually looks easier than updating gsl. It has way more build errors. |
@WSLUser yeah, GSL is really annoying because they changed the definition of |
Well we have fmt, can we use it in place of normal span? |
fmt is a string formatting library, not a general-purpose safe memory region access library. 😄 |
Yeah I didn't think it could but was hopeful |
Hello @miniksa! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
## 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). (cherry picked from commit 48b3262)
🎉 Handy links: |
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 andwil
having a bug.References
microsoft/wil#100
PR Checklist
Validation Steps Performed
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).