From 1467b858c5e009ac66b66dc34d9b6ff6ff5f06b1 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Fri, 17 Nov 2017 15:34:48 +0100 Subject: [PATCH] fixed missing memory deallocation --- rtengine/dcrop.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/rtengine/dcrop.cc b/rtengine/dcrop.cc index 4cf98859e..c8baf42df 100644 --- a/rtengine/dcrop.cc +++ b/rtengine/dcrop.cc @@ -702,6 +702,7 @@ void Crop::update (int todo) // fattal needs to work on the full image. So here we get the full // image from imgsrc, and replace the denoised crop in case f = new Imagefloat(fw, fh); + fattalCrop.reset(f); PreviewProps pp (0, 0, parent->fw, parent->fh, skip); int tr = getCoarseBitMask(params.coarse); parent->imgsrc->getImage(parent->currWB, tr, f, pp, params.toneCurve, params.icm, params.raw);