diff options
Diffstat (limited to 'lcms2mt/src/cmscnvrt.c')
-rw-r--r-- | lcms2mt/src/cmscnvrt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lcms2mt/src/cmscnvrt.c b/lcms2mt/src/cmscnvrt.c index afa3de60..f29ab5ba 100644 --- a/lcms2mt/src/cmscnvrt.c +++ b/lcms2mt/src/cmscnvrt.c @@ -546,6 +546,8 @@ cmsPipeline* DefaultICCintents(cmsContext ContextID, Result = cmsPipelineAlloc(ContextID, 0, 0); if (Result == NULL) return NULL; + ContextID->dwFlags = dwFlags; + CurrentColorSpace = cmsGetColorSpace(ContextID, hProfiles[0]); for (i=0; i < nProfiles; i++) { @@ -653,10 +655,14 @@ cmsPipeline* DefaultICCintents(cmsContext ContextID, } + ContextID->dwFlags = 0; + return Result; Error: + ContextID->dwFlags = 0; + if (Lut != NULL) cmsPipelineFree(ContextID, Lut); if (Result != NULL) cmsPipelineFree(ContextID, Result); return NULL; |