From 289d7eef309ed7b953a15d836a2b255f156d9a06 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 15 Jan 2023 09:55:26 +1100 Subject: [PATCH] Update tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs Co-authored-by: Scott Williams --- .../TestUtilities/Tests/TestImageProviderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs b/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs index 8addab3b1b..0a3e45b3c8 100644 --- a/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs +++ b/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs @@ -408,7 +408,7 @@ public class TestImageProviderTests protected override ImageInfo Identify(DecoderOptions options, Stream stream, CancellationToken cancellationToken) { - Image image = this.Decode(this.CreateDefaultSpecializedOptions(options), stream, cancellationToken); + using Image image = this.Decode(this.CreateDefaultSpecializedOptions(options), stream, cancellationToken); return new(image.PixelType, image.Width, image.Height, image.Metadata); }