mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* Source/NSXMLNode.m: Correct infinite loop in releaseExtraRetains.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34662 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
198cc1a46f
commit
4a7581308d
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-01-29 12:28-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSXMLNode.m: Correct infinite loop in releaseExtraRetains.
|
||||
|
||||
2012-01-26 22:48-CET Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* Source/NSXMLElement.m: Try to fix attribute removal semantics.
|
||||
|
|
|
@ -105,7 +105,7 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
{
|
||||
// this object just became a subNode, so pass responsibility for external retains up the line
|
||||
BOOL releaseSelf = (internal->externalRetains > 0); // if we've retained ourself
|
||||
while (internal->externalRetains--)
|
||||
while (internal->externalRetains-- > 0)
|
||||
{
|
||||
[parent recordExternalRetain];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue