Fix some issues reported y valgrind

This commit is contained in:
heckflosse
2017-06-22 23:46:16 +02:00
parent 41d3179f2c
commit 2579e3f6ac
8 changed files with 6 additions and 134 deletions

View File

@@ -3497,7 +3497,8 @@ SSEFUNCTION void ImProcFunctions::RGB_denoise_info(Imagefloat * src, Imagefloat
bdecomp = new wavelet_decomposition (labdn->data + 2 * datalen, labdn->W, labdn->H, levwav, 1);
}
}
bool autoch = dnparams.autochroma;
const bool autoch = (settings->leveldnautsimpl == 1 && (dnparams.Cmethod == "AUT" || dnparams.Cmethod == "PRE")) || (settings->leveldnautsimpl == 0 && (dnparams.C2method == "AUTO" || dnparams.C2method == "PREV"));
if (comptlevel == 0) {
WaveletDenoiseAll_info(