Commit 7d9bbd4e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix memory leak: setDefaultPixel copies

parent e6598093
......@@ -713,6 +713,7 @@ KUndo2Command* KisPaintDevice::convertTo(const KoColorSpace * dstColorSpace, KoC
memset(defPixel, 0, pixelSize());
m_d->colorSpace->convertPixelsTo(defaultPixel(), defPixel, dstColorSpace, 1, renderingIntent, conversionFlags);
setDefaultPixel(defPixel);
delete[] defPixel;
}
else {
KisRandomConstAccessorSP srcIt = createRandomConstAccessorNG(x, y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment