From 4b7fe2833693cd784e533a4523764f1b78c4c649 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Thu, 16 Mar 2017 02:38:44 +0100 Subject: [PATCH] Fixed a bug: When a processor "did not cover" the whole output image, there were memory garbage artifacts in the background. --- src/ImageSharp/Image/PixelAccessor{TColor}.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Image/PixelAccessor{TColor}.cs b/src/ImageSharp/Image/PixelAccessor{TColor}.cs index a10676565..926e9f055 100644 --- a/src/ImageSharp/Image/PixelAccessor{TColor}.cs +++ b/src/ImageSharp/Image/PixelAccessor{TColor}.cs @@ -59,7 +59,7 @@ namespace ImageSharp /// The width of the image represented by the pixel buffer. /// The height of the image represented by the pixel buffer. public PixelAccessor(int width, int height) - : this(width, height, new PinnedBuffer(width * height)) + : this(width, height, PinnedBuffer.CreateClean(width * height)) { }