BADF00D / DisposableFixer

This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Other
35 stars 7 forks source link

Problem when using Null-conditional operator #33

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

The following local variable is marked as not disposed:

var subscription = Interlocked.Exchange(ref _subscription, null);
subscription?.Dispose();

image

Version: 0.20 Visual Studio 2015