< prev index next >

src/share/native/sun/java2d/cmm/lcms/cmsopt.c

Print this page
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;
< prev index next >