diff --git a/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.Buffer{T}.cs b/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.Buffer{T}.cs
index 31096d3a93..0b0d6c4d49 100644
--- a/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.Buffer{T}.cs
+++ b/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.Buffer{T}.cs
@@ -51,7 +51,7 @@ namespace SixLabors.Memory
///
protected override void Dispose(bool disposing)
{
- if (!disposing || this.Data == null || this.sourcePoolReference == null)
+ if (!disposing || this.Data is null || this.sourcePoolReference is null)
{
return;
}
@@ -71,7 +71,7 @@ namespace SixLabors.Memory
///
/// The implementation of .
///
- private class ManagedByteBuffer : Buffer, IManagedByteBuffer
+ private sealed class ManagedByteBuffer : Buffer, IManagedByteBuffer
{
public ManagedByteBuffer(byte[] data, int length, ArrayPool sourcePool)
: base(data, length, sourcePool)