Browse Source

Added missing null check when disposing the objects.

pull/589/head
Dirk Lemstra 8 years ago
parent
commit
abd1ba437d
  1. 14
      src/ImageSharp/Processing/Quantization/FrameQuantizers/WuFrameQuantizer{TPixel}.cs

14
src/ImageSharp/Processing/Quantization/FrameQuantizers/WuFrameQuantizer{TPixel}.cs

@ -157,13 +157,13 @@ namespace SixLabors.ImageSharp.Processing.Quantization.FrameQuantizers
}
finally
{
this.vwt.Dispose();
this.vmr.Dispose();
this.vmg.Dispose();
this.vmb.Dispose();
this.vma.Dispose();
this.m2.Dispose();
this.tag.Dispose();
this.vwt?.Dispose();
this.vmr?.Dispose();
this.vmg?.Dispose();
this.vmb?.Dispose();
this.vma?.Dispose();
this.m2?.Dispose();
this.tag?.Dispose();
}
}

Loading…
Cancel
Save