From 1c45c1a7055a90af8bcb288140422eaa7db405ba Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Thu, 13 May 2021 22:51:55 +0300 Subject: [PATCH] Removed GC.SuppressFinalize(this) from Image.Dispose() due to it not having a Finalization method --- src/ImageSharp/Image.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ImageSharp/Image.cs b/src/ImageSharp/Image.cs index fbb3ec2069..c07c7fe83f 100644 --- a/src/ImageSharp/Image.cs +++ b/src/ImageSharp/Image.cs @@ -78,11 +78,7 @@ namespace SixLabors.ImageSharp Configuration IConfigurationProvider.Configuration => this.configuration; /// - public void Dispose() - { - this.Dispose(true); - GC.SuppressFinalize(this); - } + public void Dispose() => this.Dispose(true); /// /// Saves the image to the given stream using the given image encoder.