8184937: LCMS error 13: Couldn't link the profiles

Reviewed-by: prr
This commit is contained in:
Sreeprakash Sreedharan 2017-08-14 15:32:25 +05:30 committed by Ramanand Patil
parent 7d547d0ee4
commit 8d9060c1a6

View File

@ -4464,12 +4464,6 @@ void *Type_MPE_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU
if (!_cmsReadUInt32Number(io, &ElementCount)) goto Error; if (!_cmsReadUInt32Number(io, &ElementCount)) goto Error;
if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) goto Error; if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) goto Error;
if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) {
if (NewLUT != NULL) cmsPipelineFree(NewLUT);
*nItems = 0;
return NULL;
}
// Success // Success
*nItems = 1; *nItems = 1;
return NewLUT; return NewLUT;