manually release ITypeInfo references (missed one) #3321
Merged
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 #3305
Relates to #3271
Proposed changes
Release ITypeInfo RCW manually instead of letting the GC clean up. Original PR #3315 missed one reference, this generally made the test run more stable but it was still flaky.
Customer Impact
Tests should become more stable regardless how they are run
Regression?
Yes (after merging PR #3276)
Risk
no known risk
Before
Tests start failing after PR #3276
Test were still failing occasionally after PR #3315
After
Tests should succeed even more before and after PR #3276
Test methodology
Test environment(s)
local & CI
Microsoft Reviewers: Open in CodeFlow