else
property=InterpretImageProperties((ImageInfo *) image_info,image,option,
exception);
- (void) SetImageProperty(image,"caption",property,exception);
- property=DestroyString(property);
+ if (property != (char *) NULL)
+ {
+ (void) SetImageProperty(image,"caption",property,exception);
+ property=DestroyString(property);
+ }
caption=ConstantString(GetImageProperty(image,"caption",exception));
/*
Get context.
break;
label=InterpretImageProperties((ImageInfo *) image_info,next_image,
DefaultTileLabel,exception);
- (void) SetImageProperty(next_image,"label",label,exception);
- label=DestroyString(label);
+ if (label != (char *) NULL)
+ {
+ (void) SetImageProperty(next_image,"label",label,exception);
+ label=DestroyString(label);
+ }
if (image_info->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
"geometry: %.20gx%.20g",(double) next_image->columns,(double)