Browse Source

Removed GC.SuppressFinalize(this) from Image.Dispose() due to it not having a Finalization method

pull/1629/head
Dmitry Pentin 5 years ago
parent
commit
1c45c1a705
  1. 6
      src/ImageSharp/Image.cs

6
src/ImageSharp/Image.cs

@ -78,11 +78,7 @@ namespace SixLabors.ImageSharp
Configuration IConfigurationProvider.Configuration => this.configuration; Configuration IConfigurationProvider.Configuration => this.configuration;
/// <inheritdoc /> /// <inheritdoc />
public void Dispose() public void Dispose() => this.Dispose(true);
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
/// <summary> /// <summary>
/// Saves the image to the given stream using the given image encoder. /// Saves the image to the given stream using the given image encoder.

Loading…
Cancel
Save