git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13618 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-05-10 09:17:12 +00:00
parent 7a56620521
commit 1e749e2bc9
2 changed files with 10 additions and 3 deletions

View file

@ -987,11 +987,17 @@ static NSString *indentStrings[] = {
[self getObjects: objects];
for (i = 0; i < count; i++)
objects[i] = [objects[i] copyWithZone: zone];
{
objects[i] = [objects[i] copyWithZone: zone];
}
newArray = [[GSArrayClass allocWithZone: zone]
initWithObjects: objects count: count];
#if GS_WITH_GC == 0
while (i > 0)
RELEASE(objects[--i]);
{
[objects[--i] release];
}
#endif
return newArray;
}
@ -1150,7 +1156,7 @@ static NSString *indentStrings[] = {
(*rem)(self, remSel, i);
}
}
#ifndef GS_WITH_GC
#if GS_WITH_GC == 0
if (rem != 0)
{
RELEASE(anObject);