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

index 69a3f98ca53d93a753f7eed9429a122ec21c4b32..3bba500a2c4777d8eccf8cd4ad0770348d388729 100644 (file)
@@ -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]);