]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33970
authorCristy <urban-warrior@imagemagick.org>
Sun, 6 May 2018 16:24:45 +0000 (12:24 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 6 May 2018 16:24:45 +0000 (12:24 -0400)
MagickCore/property.c

index e530441dba418b41a1eabe2912b22c83d93fa5f9..ccf3d6452b0ee4f33817bf8b87f10da7a1f03897 100644 (file)
@@ -3636,6 +3636,10 @@ RestoreMSCWarning
           (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
             "UnbalancedBraces","\"%%[%s\"",pattern);
           interpret_text=DestroyString(interpret_text);
+          if (property_image != image)
+            property_image=DestroyImage(property_image);
+          if (property_info != image_info)
+            property_info=DestroyImageInfo(property_info);
           return((char *) NULL);
         }
       /*