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); }