property=InterpretImageProperties((ImageInfo *) image_info,image,option,
exception);
if (property == (char *) NULL)
- return((Image *) NULL);
+ return(DestroyImageList(image));
(void) SetImageProperty(image,"caption",property,exception);
property=DestroyString(property);
caption=ConstantString(GetImageProperty(image,"caption",exception));
property=InterpretImageProperties((ImageInfo *) image_info,image,
image_info->filename,exception);
if (property == (char *) NULL)
- return((Image *) NULL);
+ return(DestroyImageList(image));
(void) SetImageProperty(image,"label",property,exception);
property=DestroyString(property);
label=GetImageProperty(image,"label",exception);