diff --git a/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs b/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs index 64561af071..97fab1b680 100644 --- a/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs +++ b/src/ImageSharp/Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs @@ -24,7 +24,7 @@ internal class SharedArrayPoolBuffer : ManagedBufferBase, IRefCounted public byte[]? Array { get; private set; } - internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes) + protected internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes) => this.lifetimeGuard.AttachAllocationTracking(allocator, lengthInBytes); protected override void DisposeCore(bool disposing) diff --git a/src/ImageSharp/Memory/Allocators/Internals/UnmanagedBuffer{T}.cs b/src/ImageSharp/Memory/Allocators/Internals/UnmanagedBuffer{T}.cs index d94f6ce29d..3a729cdf2b 100644 --- a/src/ImageSharp/Memory/Allocators/Internals/UnmanagedBuffer{T}.cs +++ b/src/ImageSharp/Memory/Allocators/Internals/UnmanagedBuffer{T}.cs @@ -31,7 +31,7 @@ internal sealed unsafe class UnmanagedBuffer : AllocationTrackedMemoryManager public void* Pointer => this.lifetimeGuard.Handle.Pointer; - internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes) + protected internal override void AttachAllocationTracking(MemoryAllocator allocator, long lengthInBytes) => this.lifetimeGuard.AttachAllocationTracking(allocator, lengthInBytes); public override Span GetSpan()