if (!strcmp (color_space.str, "CMYK"))
{
ret = _babl_space_for_lcms (icc_data, icc_length);
+ if (!ret)
+ return NULL;
if (ret->space.icc_type == BablICCTypeCMYK)
return ret;
ret->space.icc_length = icc_length;
// INTENT_PERCEPTUAL,0);//intent & 7, 0);
cmsCloseProfile (ret->space.cmyk.lcms_profile); // XXX keep it open in case of CMYK to CMYK transforms needed?
#endif
+ ret->space.icc_type = BablICCTypeCMYK;
return ret;
}
-
-
-
if (strcmp (color_space.str, "RGB ")
&& strcmp (color_space.str, "GRAY")
)
memset (&space, 0, sizeof(space));
space.instance.class_type = BABL_SPACE;
space.instance.id = 0;
- space.icc_type = BablICCTypeCMYK;
if (i >= MAX_SPACES-1)
{