mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* 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:
parent
52c70ef9fc
commit
da87b87a52
2 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue