Skip to content

Commit

Permalink
sync lcms2 bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
issakomi committed Sep 3, 2022
1 parent d3ea12a commit 8d13371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion alizalcms/cmsio1.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,6 @@ cmsPipeline* CMSEXPORT _cmsReadDevicelinkLUT(cmsHPROFILE hProfile, cmsUInt32Numb
return Lut;
Error:
cmsPipelineFree(Lut);
cmsFreeNamedColorList(nc);
return NULL;
}

Expand Down
5 changes: 4 additions & 1 deletion alizalcms/cmstypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,10 @@ void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU
Block = (wchar_t*) _cmsMalloc(self ->ContextID, SizeOfTag);
if (Block == NULL) goto Error;
NumOfWchar = SizeOfTag / sizeof(wchar_t);
if (!_cmsReadWCharArray(io, NumOfWchar, Block)) goto Error;
if (!_cmsReadWCharArray(io, NumOfWchar, Block)) {
_cmsFree(self->ContextID, Block);
goto Error;
}
}

mlu ->MemPool = Block;
Expand Down

0 comments on commit 8d13371

Please sign in to comment.