fixed missing memory deallocation

This commit is contained in:
Alberto Griggio
2017-11-17 15:34:48 +01:00
parent b25bac8c53
commit 1467b858c5

View File

@@ -702,6 +702,7 @@ void Crop::update (int todo)
// fattal needs to work on the full image. So here we get the full // fattal needs to work on the full image. So here we get the full
// image from imgsrc, and replace the denoised crop in case // image from imgsrc, and replace the denoised crop in case
f = new Imagefloat(fw, fh); f = new Imagefloat(fw, fh);
fattalCrop.reset(f);
PreviewProps pp (0, 0, parent->fw, parent->fh, skip); PreviewProps pp (0, 0, parent->fw, parent->fh, skip);
int tr = getCoarseBitMask(params.coarse); int tr = getCoarseBitMask(params.coarse);
parent->imgsrc->getImage(parent->currWB, tr, f, pp, params.toneCurve, params.icm, params.raw); parent->imgsrc->getImage(parent->currWB, tr, f, pp, params.toneCurve, params.icm, params.raw);