Missing Release() call on ITypeLib interface pointer
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 5.1k
- Avg merge
- 9h 11m
- Merged PRs (30d)
- 1
Description
I see this code is using the discard pattern for unused variable here:
https://github.com/dotnet/samples/blob/a3b15f60fe28de2f798bcf6b657238cbf2c04f62/core/extensions/OutOfProcCOM/COMRegistration/TypeLib.cs#L18
Will discard pattern automatically call `Release()` method on a COM interface pointer?
Contributor guide
Assessment
This issue has not been assessed yet.