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

index 31023be8916bf1825211e22e69b2d5f3b7d9425b..718eccdcb5ed132f934ff8da4c2b5c52e3ef8a88 100644 (file)
@@ -103,7 +103,7 @@ static const unsigned char
 %  given string.
 %
 %  An extended string is the string length, plus an extra MaxTextExtent space
-%  to allow for the string to be activally worked on.
+%  to allow for the string to be actively worked on.
 %
 %  The returned string shoud be freed using DestoryString().
 %
index 418140611cc34cec64afbb277295b382765c791f..4641f012a6216f8386df951ed7af1a7514f60f63 100644 (file)
@@ -479,9 +479,8 @@ static void DestroyXMLTreeRoot(XMLTreeInfo *xml_info)
   /*
     Free root tag allocations.
   */
-  return;
   root=(XMLTreeRoot *) xml_info;
-  for (i=NumberPredefinedEntities; root->entities[i]; i+=2)
+  for (i=NumberPredefinedEntities; root->entities[i] != (char *) NULL; i+=2)
     root->entities[i+1]=DestroyString(root->entities[i+1]);
   root->entities=(char **) RelinquishMagickMemory(root->entities);
   for (i=0; root->attributes[i] != (char **) NULL; i++)
@@ -1021,7 +1020,6 @@ MagickPrivate XMLTreeInfo *InsertTagIntoXMLTree(XMLTreeInfo *xml_info,
     *node,
     *previous;
 
-  DestroyXMLTreeRoot(xml_info);
   child->ordered=(XMLTreeInfo *) NULL;
   child->sibling=(XMLTreeInfo *) NULL;
   child->next=(XMLTreeInfo *) NULL;