From 76282096c548b80d8f2b6834b9e170a07c018647 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 6 May 2018 12:24:45 -0400 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33970 --- MagickCore/property.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MagickCore/property.c b/MagickCore/property.c index e530441db..ccf3d6452 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -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); } /* -- 2.40.0