We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5a393 commit 22e1c06Copy full SHA for 22e1c06
src/ImageSharp/Image.Decode.cs
@@ -99,7 +99,7 @@ private static async ValueTask<IImageFormat> InternalDetectFormatAsync(
99
ImageFormatManager.ThrowInvalidDecoder(configuration.ImageFormatsManager);
100
}
101
102
- using (IMemoryOwner<byte> memoryOwner = MemoryPool<byte>.Shared.Rent(headerSize))
+ using (IMemoryOwner<byte> memoryOwner = configuration.MemoryAllocator.Allocate<byte>(headerSize))
103
{
104
Memory<byte> headersBuffer = memoryOwner.Memory;
105
long startPosition = stream.Position;
0 commit comments