Lines Matching refs:newattrval
894 jas_iccattrval_t *newattrval; in jas_iccattrval_allowmodify() local
896 newattrval = 0; in jas_iccattrval_allowmodify()
898 if (!(newattrval = jas_iccattrval_create0())) in jas_iccattrval_allowmodify()
900 newattrval->ops = attrval->ops; in jas_iccattrval_allowmodify()
901 newattrval->type = attrval->type; in jas_iccattrval_allowmodify()
902 ++newattrval->refcnt; in jas_iccattrval_allowmodify()
903 if (newattrval->ops->copy) { in jas_iccattrval_allowmodify()
904 if ((*newattrval->ops->copy)(newattrval, attrval)) in jas_iccattrval_allowmodify()
907 memcpy(&newattrval->data, &attrval->data, in jas_iccattrval_allowmodify()
908 sizeof(newattrval->data)); in jas_iccattrval_allowmodify()
910 *attrvalx = newattrval; in jas_iccattrval_allowmodify()
914 if (newattrval) { in jas_iccattrval_allowmodify()
915 jas_free(newattrval); in jas_iccattrval_allowmodify()