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

Issue #56 is not solved correctly/completely #58

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

Prerequisites

Description

When assigning an IDisposable to a local variable and adding it to a CompositeDisposable later, it is not detected as disposed

Source Code

var disposable = new CompositeDisposable();
var mem = new MemoryStream();
disposable.Add(mem);
disposable.Dispose();

Screenshot

image