* Source/NSXMLNode.m: Correct issue with crash on

Windows.   Seems that calling xmlFree(..) on a xmlNode
	causes a crash. Call xmlFreeNode in dealloc instead.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34733 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2012-02-07 18:13:27 +00:00
parent 52c70ef9fc
commit da87b87a52
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2012-02-07 13:12-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLNode.m: Correct issue with crash on
Windows. Seems that calling xmlFree(..) on a xmlNode
causes a crash. Call xmlFreeNode in dealloc instead.
2012-02-04 09:23-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLDocument.m: add implementation of isEqual:

View file

@ -952,7 +952,7 @@ NSLog(@"RELEASING TRICKY EXTRA RETAIN in %@ now: %d", self, internal->externalRe
node->_private = NULL;
if (node && node->parent == NULL)
{
xmlFree(node); // the top level node frees the entire tree
xmlFreeNode(node); // the top level node frees the entire tree
}
GS_DESTROY_INTERNAL(NSXMLNode);
}