8007927: Improve cmsAllocProfileSequenceDescription

Reviewed-by: bae, mschoene, prr
This commit is contained in:
Jia-Hong Chen 2013-03-15 12:31:57 -07:00 committed by Jennifer Godinez
parent 3cf0ad20be
commit 2774999b75

View File

@ -734,6 +734,10 @@ cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUI
Seq -> seq = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC)); Seq -> seq = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC));
Seq -> n = n; Seq -> n = n;
if (Seq -> seq == NULL) {
_cmsFree(ContextID, Seq);
return NULL;
}
for (i=0; i < n; i++) { for (i=0; i < n; i++) {
Seq -> seq[i].Manufacturer = NULL; Seq -> seq[i].Manufacturer = NULL;