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

@ -6,6 +6,7 @@
Added support for system-wide .GNUsteprc with force options. Added support for system-wide .GNUsteprc with force options.
Removed use of FORCE_USER_ROOT and FORCE_DEFAULTS_ROOT Removed use of FORCE_USER_ROOT and FORCE_DEFAULTS_ROOT
* Source/Base/gsdoc: Document the .GNUsteprc files. * Source/Base/gsdoc: Document the .GNUsteprc files.
* Source/NSArray.m: Fix bug with GC pointed out by James Knight
2002-05-09 Richard Frith-Macdonald <rfm@gnu.org> 2002-05-09 Richard Frith-Macdonald <rfm@gnu.org>

View file

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