Fixed a memory leak in locallab
This commit is contained in:
parent
8818306f46
commit
7cc09ca248
@ -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
|
const float radius = lp.rad / (sk * 1.4f); //0 to 70 ==> see skip
|
||||||
GW = transformed->W;
|
GW = transformed->W;
|
||||||
GH = transformed->H;
|
GH = transformed->H;
|
||||||
float **deltE;
|
float **deltE = nullptr;
|
||||||
|
|
||||||
if (lp.qualmet >= 1) {
|
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++) {
|
for (int i = 0; i < GH; i++) {
|
||||||
delete [] deltE[i];
|
delete [] deltE[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user