changeset 47424:3a00eb4636e3

8184937: LCMS error 13: Couldn't link the profiles Reviewed-by: prr Contributed-by: sreeprakash.s@oracle.com
author rpatil
date Mon, 14 Aug 2017 15:32:25 +0530
parents 4fc2a4a29f3d
children 96179f26139e
files src/java.desktop/share/native/liblcms/cmstypes.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;