diff --git a/rtengine/iplab2rgb.cc b/rtengine/iplab2rgb.cc index 7620068a4..ffa6ea8c0 100644 --- a/rtengine/iplab2rgb.cc +++ b/rtengine/iplab2rgb.cc @@ -351,6 +351,7 @@ Imagefloat* ImProcFunctions::lab2rgbOut(LabImage* lab, int cx, int cy, int cw, i image->ExecCMSTransform(hTransform, *lab, cx, cy); cmsDeleteTransform(hTransform); + cmsCloseProfile(iprof); image->normalizeFloatTo65535(); } else {