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
Fix leaking brushes #9566
Fix leaking brushes #9566
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.
+1
Seem fine to me, I have only briefly run this.
Clever idea. I have checked with the portable version and from what I see with GdiView, it is working great and fix the issue. Code seems good. I will give it another look later. I was just wondering. On the project, do we prefer:
or
|
The latter generally, but the case I checked here the first was still required (null check). |
I've started to review, but got caught up with work. Will complete this week. |
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.
👍 with some comments
@NikolayXHD I've made few tweaks, please have a look. |
Ok, meged the changes changes to respective commits, thank you. |
Thank you! |
Thanks! |
Sure thing :) |
Fixes #9429
Proposed changes
wrapper.Dispose method will not touch the underlying brush if it is system brush.
Test methodology
Test environment(s)
Windows 10
Merge strategy
✒️ I contribute this code under The Developer Certificate of Origin.