rev 12531 : 8171261: Stability fixes for lcms Reviewed-by: serb, vadim, mschoene
@@ -1462,10 +1462,11 @@ } else { // LUT optimizes to nothing. Set the identity LUT cmsStageFree(ObtainedCurves); + ObtainedCurves = NULL; if (!cmsPipelineInsertStage(Dest, cmsAT_BEGIN, cmsStageAllocIdentity(Dest ->ContextID, Src ->InputChannels))) goto Error; *dwFlags |= cmsFLAGS_NOCACHE;