From 28d3edf652f349e7497160c166cc5c65f7b8d026 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 29 Dec 2013 11:21:11 +0000 Subject: [PATCH] --- MagickCore/xml-tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index 69a3f98ca..3bba500a2 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -474,12 +474,11 @@ static void DestroyXMLTreeRoot(XMLTreeInfo *xml_info) assert((xml_info->signature == MagickSignature) || (((XMLTreeRoot *) xml_info)->signature == MagickSignature)); (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); - if (xml_info->parent == (XMLTreeInfo *) NULL) + if (xml_info->parent != (XMLTreeInfo *) NULL) return; /* Free root tag allocations. */ - return; root=(XMLTreeRoot *) xml_info; for (i=NumberPredefinedEntities; root->entities[i] != (char *) NULL; i+=2) root->entities[i+1]=DestroyString(root->entities[i+1]); -- 2.50.1