mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
47ec878faf
commit
da2c4f2325
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>
|
2004-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSHTTPURLHandle.m: Expect to read content data after headers
|
* Source/GSHTTPURLHandle.m: Expect to read content data after headers
|
||||||
|
|
|
@ -140,8 +140,8 @@ static Class NSCountedSet_concrete_class;
|
||||||
while (j-- > 1)
|
while (j-- > 1)
|
||||||
{
|
{
|
||||||
(*addImp)(self, @selector(addObject:), objs[i]);
|
(*addImp)(self, @selector(addObject:), objs[i]);
|
||||||
RELEASE(objs[i]);
|
|
||||||
}
|
}
|
||||||
|
RELEASE(objs[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue