Fixed a memory leak in locallab

This commit is contained in:
heckflosse 2017-02-08 20:28:23 +01:00
parent 8818306f46
commit 7cc09ca248

View File

@ -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];