dotnet / dotnet/samples

Missing Release() call on ITypeLib interface pointer

Open
#5,082 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.