From 7cc09ca248dfcdba198da02f3a52a7c9ef64b0c5 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 8 Feb 2017 20:28:23 +0100 Subject: [PATCH] Fixed a memory leak in locallab --- rtengine/iplocallab.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index d37b3ab89..d9cd826e1 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -3625,7 +3625,7 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage * const float radius = lp.rad / (sk * 1.4f); //0 to 70 ==> see skip GW = transformed->W; GH = transformed->H; - float **deltE; + float **deltE = nullptr; if (lp.qualmet >= 1) { @@ -5536,7 +5536,7 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage * } } - if (lp.qualmet == 1) { + if (deltE) { for (int i = 0; i < GH; i++) { delete [] deltE[i];