8184937: LCMS error 13: Couldn't link the profiles
authorrpatil
Mon, 14 Aug 2017 15:32:25 +0530
changeset 47424 3a00eb4636e3
parent 47423 4fc2a4a29f3d
child 47425 96179f26139e
8184937: LCMS error 13: Couldn't link the profiles Reviewed-by: prr Contributed-by: sreeprakash.s@oracle.com
src/java.desktop/share/native/liblcms/cmstypes.c
--- a/src/java.desktop/share/native/liblcms/cmstypes.c	Wed Aug 02 10:34:35 2017 -0700
+++ b/src/java.desktop/share/native/liblcms/cmstypes.c	Mon Aug 14 15:32:25 2017 +0530
@@ -4464,12 +4464,6 @@
     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;