Tidyup for GC

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-09-28 19:35:09 +00:00
parent 65b8d0067c
commit eb1c061d9b
30 changed files with 137 additions and 111 deletions

View file

@ -1143,7 +1143,7 @@ static NSString *indentStrings[] = {
id b = [self objectAtIndex: d];
if ((*compare)(a, b, context) == NSOrderedAscending)
{
RETAIN(a);
IF_NO_GC(RETAIN(a));
[self replaceObjectAtIndex: d + stride withObject: b];
[self replaceObjectAtIndex: d withObject: a];
RELEASE(a);
@ -1175,7 +1175,7 @@ static NSString *indentStrings[] = {
{
[super init];
array = anArray;
RETAIN(array);
IF_NO_GC(RETAIN(array));
pos = 0;
get = [array methodForSelector: oaiSel];
cnt = (unsigned (*)(NSArray*, SEL))[array methodForSelector: countSel];