Browse Source

Fix NullReferenceException in KernelSamplingMap.Dispose

js/color-alpha-handling
Sergio Pedri 6 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) if (!this.isDisposed)
{ {
this.yOffsets.Dispose(); this.yOffsets?.Dispose();
this.xOffsets.Dispose(); this.xOffsets?.Dispose();
this.isDisposed = true; this.isDisposed = true;
} }

Loading…
Cancel
Save