8007927: Improve cmsAllocProfileSequenceDescription
Reviewed-by: bae, mschoene, prr
This commit is contained in:
parent
3cf0ad20be
commit
2774999b75
@ -734,6 +734,10 @@ cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUI
|
||||
Seq -> seq = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC));
|
||||
Seq -> n = n;
|
||||
|
||||
if (Seq -> seq == NULL) {
|
||||
_cmsFree(ContextID, Seq);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i=0; i < n; i++) {
|
||||
Seq -> seq[i].Manufacturer = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user