mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix retain error in uniquing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6483 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5fb445c87
commit
dc9403d316
3 changed files with 210 additions and 169 deletions
|
@ -198,6 +198,10 @@ static Class NSCountedSet_concrete_class;
|
|||
id o = [self member: anObject];
|
||||
|
||||
[self addObject: anObject];
|
||||
if (o == nil)
|
||||
{
|
||||
o = anObject;
|
||||
}
|
||||
#if !GS_WITH_GC
|
||||
if (o != anObject)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue