Stop NativeImageList GDI leak (servicing)#4975
Merged
RussKie merged 1 commit intodotnet:release/5.0from May 26, 2021
Merged
Conversation
There are certain code paths where we are unable to track the lifetime of the object,
for example in the following scenarios:
this.imageList1.ImageStream = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"));
or
resources.ApplyResources(this.listView1, "listView1");
In those cases the loose instances will be collected by the GC.
Undo the regression introduced in dotnet#3526.
Contributor
Author
|
Approved for servicing over the email |
This was
linked to
issues
May 25, 2021
dreddy-work
approved these changes
May 26, 2021
Codecov Report
@@ Coverage Diff @@
## release/5.0 #4975 +/- ##
=====================================================
- Coverage 68.41633% 68.40469% -0.01164%
=====================================================
Files 1421 1422 +1
Lines 511052 511060 +8
Branches 41587 41586 -1
=====================================================
- Hits 349643 349589 -54
- Misses 154992 155057 +65
+ Partials 6417 6414 -3
Flags with carried forward coverage won't be shown. Click here to find out more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3567
Fixes #4913
Closes #4316
Closes #4928
Proposed changes
There are certain code paths where we are unable to track the lifetime of the object,
for example in the following scenarios:
or
In those cases the loose instances will be collected by the GC.
Undo the regression introduced in #3526.
Customer Impact
NativeImageListobjects.Regression?
Risk
Test methodology
Manual tests harness:
Before
After
Microsoft Reviewers: Open in CodeFlow