changeset 12784:83d392638864

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 a5d83ff6c6b8
children 193c43ec04d0
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	Fri Aug 04 13:02:18 2017 +0530
+++ b/src/share/native/sun/java2d/cmm/lcms/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;