mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(-initWithCoder:): Release objects outside the -addObject: loop to keep the retain count correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18579 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
97ab7af54a
commit
a3005923c0
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-02-11 17:47 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSCountedSet.m (-initWithCoder:): Release objects outside
|
||||
the -addObject: loop to keep the retain count correct.
|
||||
|
||||
2004-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSHTTPURLHandle.m: Expect to read content data after headers
|
||||
|
|
|
@ -140,8 +140,8 @@ static Class NSCountedSet_concrete_class;
|
|||
while (j-- > 1)
|
||||
{
|
||||
(*addImp)(self, @selector(addObject:), objs[i]);
|
||||
RELEASE(objs[i]);
|
||||
}
|
||||
RELEASE(objs[i]);
|
||||
}
|
||||
}
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue