mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
garbage collection fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
43ad91f79e
commit
952af9c197
65 changed files with 707 additions and 214 deletions
|
@ -1659,7 +1659,7 @@ compare(id elem1, id elem2, void* context)
|
|||
{
|
||||
id tmp = [self objectAtIndex: i1];
|
||||
|
||||
RETAIN(tmp);
|
||||
IF_NO_GC([tmp retain];)
|
||||
[self replaceObjectAtIndex: i1 withObject: [self objectAtIndex: i2]];
|
||||
[self replaceObjectAtIndex: i2 withObject: tmp];
|
||||
RELEASE(tmp);
|
||||
|
@ -1858,7 +1858,7 @@ compare(id elem1, id elem2, void* context)
|
|||
* first equal object we don't get left with a bad object
|
||||
* pointer for later comparisons.
|
||||
*/
|
||||
RETAIN(anObject);
|
||||
IF_NO_GC([anObject retain];)
|
||||
}
|
||||
(*rem)(self, remSel, i);
|
||||
}
|
||||
|
@ -1950,7 +1950,7 @@ compare(id elem1, id elem2, void* context)
|
|||
* first equal object we don't get left with a bad object
|
||||
* pointer for later comparisons.
|
||||
*/
|
||||
RETAIN(anObject);
|
||||
IF_NO_GC([anObject retain];)
|
||||
}
|
||||
(*rem)(self, remSel, i);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue