Skip to content

Commit d6ed324

Browse files
committed
For completeness only.
Closes #530
1 parent 23994d7 commit d6ed324

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cmsopt.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,11 @@ cmsBool OptimizeByResampling(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt3
789789
Dest ->OutputChannels,
790790
DataSetOut);
791791

792+
if (p16 == NULL) {
793+
cmsPipelineFree(Dest);
794+
return FALSE;
795+
}
796+
792797
_cmsPipelineSetOptimizationParameters(Dest, PrelinEval16, (void*) p16, PrelinOpt16free, Prelin16dup);
793798
}
794799

0 commit comments

Comments
 (0)