mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
GC fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13618 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7a56620521
commit
1e749e2bc9
2 changed files with 10 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue