Do retain/release/autorelease of contents as appropriate.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@136 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-03-17 19:34:04 +00:00
parent 9198d21e5f
commit 14a9419e01
3 changed files with 7 additions and 3 deletions

View file

@ -380,6 +380,7 @@ static id nilBinaryTreeNode;
[theParent setRightNode:newElement.id_u];
}
_count++;
RETAIN_ELT(newElement);
return self;
}
@ -418,6 +419,7 @@ static id nilBinaryTreeNode;
[newElement.id_u setParentNode:[self nilNode]];
}
_count++;
RETAIN_ELT(newElement);
return self;
}
@ -449,6 +451,7 @@ static id nilBinaryTreeNode;
[newElement.id_u setParentNode:[self nilNode]];
}
_count++;
RETAIN_ELT(newElement);
return self;
}
@ -523,7 +526,7 @@ static id nilBinaryTreeNode;
[oldElement.id_u setLeftNode:[self nilNode]];
[oldElement.id_u setParentNode:[self nilNode]];
_count--;
return oldElement;
return AUTORELEASE_ELT(oldElement);
}
- withElementsCall: (void(*)(elt))aFunc whileTrue: (BOOL*)flag