changeset 8543:ad1110cfba4a

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 a50328748e05
children 399ff208e0a8
files src/share/native/sun/java2d/cmm/lcms/cmstypes.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/java2d/cmm/lcms/cmstypes.c	Wed Nov 22 15:51:29 2017 +0000
+++ b/src/share/native/sun/java2d/cmm/lcms/cmstypes.c	Mon Aug 14 15:32:25 2017 +0530
@@ -4456,12 +4456,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;