mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
030f54a9cf
commit
d40d219015
72 changed files with 122 additions and 1787 deletions
|
@ -267,12 +267,10 @@ static Class NSMutableSet_concrete_class;
|
|||
[aCoder decodeValueOfObjCType: @encode(id) at: &objs[i]];
|
||||
}
|
||||
self = [self initWithObjects: objs count: count];
|
||||
#if GS_WITH_GC == 0
|
||||
while (count-- > 0)
|
||||
{
|
||||
[objs[count] release];
|
||||
}
|
||||
#endif
|
||||
GS_ENDIDBUF();
|
||||
}
|
||||
}
|
||||
|
@ -418,11 +416,13 @@ static Class NSMutableSet_concrete_class;
|
|||
i++;
|
||||
}
|
||||
self = [self initWithObjects: os count: c];
|
||||
#if !GS_WITH_GC
|
||||
if (flag)
|
||||
while (i--)
|
||||
[os[i] release];
|
||||
#endif
|
||||
{
|
||||
while (i--)
|
||||
{
|
||||
[os[i] release];
|
||||
}
|
||||
}
|
||||
GS_ENDIDBUF();
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue