|
|
|
@ -15,8 +15,6 @@ namespace SixLabors.ImageSharp.Processing.Processors |
|
|
|
internal abstract class ImageProcessor<TPixel> : IImageProcessor<TPixel> |
|
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
|
{ |
|
|
|
private bool isDisposed; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="ImageProcessor{TPixel}"/> class.
|
|
|
|
/// </summary>
|
|
|
|
@ -97,6 +95,8 @@ namespace SixLabors.ImageSharp.Processing.Processors |
|
|
|
/// <inheritdoc/>
|
|
|
|
public virtual void Dispose() |
|
|
|
{ |
|
|
|
this.Dispose(true); |
|
|
|
GC.SuppressFinalize(this); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -142,10 +142,6 @@ namespace SixLabors.ImageSharp.Processing.Processors |
|
|
|
/// <param name="disposing">Whether to dispose managed and unmanaged objects.</param>
|
|
|
|
protected virtual void Dispose(bool disposing) |
|
|
|
{ |
|
|
|
if (!this.isDisposed) |
|
|
|
{ |
|
|
|
this.isDisposed = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|