From 5e5b88c70c69269ff548498105eb2d5b7461ace5 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 12 May 2026 20:44:20 +1000 Subject: [PATCH] Fix override accesibility --- .../Memory/Allocators/Internals/SharedArrayPoolBuffer{T}.cs | 2 +- .../Memory/Allocators/Internals/UnmanagedBuffer{T}.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()