]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 29 Dec 2013 13:30:36 +0000 (13:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 29 Dec 2013 13:30:36 +0000 (13:30 +0000)
MagickCore/threshold.c

index e1d7e30d19d8f6d2c30e1db21f7c63ce1b487e34..d1e63fc0d545ec0ca8736d940426429902c02a07 100644 (file)
@@ -965,7 +965,10 @@ static ThresholdMap *GetThresholdMapFile(const char *xml,const char *filename,
       break;
   }
   if (threshold == (XMLTreeInfo *) NULL)
-    return(map);
+    {
+      thresholds=DestroyXMLTree(thresholds);
+      return(map);
+    }
   description=GetXMLTreeChild(threshold,"description");
   if (description == (XMLTreeInfo *) NULL)
     {