(-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:
Alexander Malmberg 2004-02-11 16:51:00 +00:00
parent 97ab7af54a
commit a3005923c0
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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;