diff --git a/src/share/native/sun/java2d/cmm/lcms/cmstypes.c b/src/share/native/sun/java2d/cmm/lcms/cmstypes.c index 7519f4555361f89908a1b150fdf5cefdd01f81ae..771eee0f2b322e3e88571df4ffac7d9aac4e7c41 100644 --- a/src/share/native/sun/java2d/cmm/lcms/cmstypes.c +++ b/src/share/native/sun/java2d/cmm/lcms/cmstypes.c @@ -4456,12 +4456,6 @@ void *Type_MPE_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU if (!_cmsReadUInt32Number(io, &ElementCount)) 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 *nItems = 1; return NewLUT;