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 @@ - - - + + + 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) {