Browse Source

Fix NullReferenceException in KernelSamplingMap.Dispose

js/color-alpha-handling
Sergio Pedri 5 years ago
parent
commit
0a6f7baa71
  1. 4
      src/ImageSharp/Processing/Processors/Convolution/KernelSamplingMap.cs

4
src/ImageSharp/Processing/Processors/Convolution/KernelSamplingMap.cs

@ -99,8 +99,8 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution
{
if (!this.isDisposed)
{
this.yOffsets.Dispose();
this.xOffsets.Dispose();
this.yOffsets?.Dispose();
this.xOffsets?.Dispose();
this.isDisposed = true;
}

Loading…
Cancel
Save