From 35f657aa5f2a7d9d87ac4b4ede677754ee2fcaa5 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 12 May 2026 21:18:33 +1000 Subject: [PATCH 1/2] Update ImageSharp.Drawing.csproj --- src/ImageSharp.Drawing/ImageSharp.Drawing.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj b/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj index 4e3407fa..8eae47b5 100644 --- a/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj +++ b/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj @@ -40,9 +40,9 @@ - - - + + + From ba11feefc69a5724426097b13a7cf24532e3edac Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 12 May 2026 21:24:25 +1000 Subject: [PATCH 2/2] Update TestMemoryAllocator.cs --- .../TestUtilities/TestMemoryAllocator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ImageSharp.Drawing.Tests/TestUtilities/TestMemoryAllocator.cs b/tests/ImageSharp.Drawing.Tests/TestUtilities/TestMemoryAllocator.cs index 997089dc..4433e89d 100644 --- a/tests/ImageSharp.Drawing.Tests/TestUtilities/TestMemoryAllocator.cs +++ b/tests/ImageSharp.Drawing.Tests/TestUtilities/TestMemoryAllocator.cs @@ -28,7 +28,7 @@ internal class TestMemoryAllocator : MemoryAllocator protected internal override int GetBufferCapacityInBytes() => this.BufferCapacityInBytes; - public override IMemoryOwner Allocate(int length, AllocationOptions options = AllocationOptions.None) + protected override AllocationTrackedMemoryManager AllocateCore(int length, AllocationOptions options = AllocationOptions.None) { T[] array = this.AllocateArray(length, options); return new BasicArrayBuffer(array, length, this); @@ -95,7 +95,7 @@ public struct ReturnRequest /// /// Wraps an array as an instance. /// - private class BasicArrayBuffer : MemoryManager + private class BasicArrayBuffer : AllocationTrackedMemoryManager where T : struct { private readonly TestMemoryAllocator allocator; @@ -140,7 +140,7 @@ public override unsafe MemoryHandle Pin(int elementIndex = 0) public override void Unpin() => throw new NotImplementedException(); /// - protected override void Dispose(bool disposing) + protected override void DisposeCore(bool disposing) { if (disposing) {