From: cristy Date: Sun, 29 Dec 2013 11:21:11 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3019 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28d3edf652f349e7497160c166cc5c65f7b8d026;p=imagemagick --- 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]);