interpret_text=(char *) ResizeQuantumMemory(interpret_text,extent+ \
MaxTextExtent,sizeof(*interpret_text)); \
if (interpret_text == (char *) NULL) \
- return((char *) NULL); \
+ { \
+ if (property_image != image) \
+ property_image=DestroyImage(property_image); \
+ if (property_info != image_info) \
+ property_info=DestroyImageInfo(property_info); \
+ return((char *) NULL); \
+ } \
q=interpret_text+strlen(interpret_text); \
} \
} \
interpret_text=(char *) ResizeQuantumMemory(interpret_text,extent+ \
MaxTextExtent,sizeof(*interpret_text)); \
if (interpret_text == (char *) NULL) \
- return((char *) NULL); \
+ { \
+ if (property_image != image) \
+ property_image=DestroyImage(property_image); \
+ if (property_info != image_info) \
+ property_info=DestroyImageInfo(property_info); \
+ return((char *) NULL); \
+ } \
q=interpret_text+strlen(interpret_text); \
} \
q+=FormatLocaleString(q,extent,"%s=%s\n",(key),(value)); \
interpret_text=(char *) ResizeQuantumMemory(interpret_text,extent+ \
MaxTextExtent,sizeof(*interpret_text)); \
if (interpret_text == (char *) NULL) \
- return((char *) NULL); \
+ { \
+ if (property_image != image) \
+ property_image=DestroyImage(property_image); \
+ if (property_info != image_info) \
+ property_info=DestroyImageInfo(property_info); \
+ return((char *) NULL); \
+ } \
q=interpret_text+strlen(interpret_text); \
} \
(void) CopyMagickString(q,(string),extent); \