changeset 17324:b42bfff8de0e

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 a51494dbd757
children c1970753d351
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	Tue Aug 15 14:59:49 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;