mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(-initWithObjects:count:): Retain objects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@406 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b50c94ece4
commit
109f709dce
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@
|
|||
_capacity = count;
|
||||
OBJC_MALLOC(_contents_array, elt, _capacity);
|
||||
while (count--)
|
||||
_contents_array[count] = objects[count];
|
||||
{
|
||||
[objects[count] retain];
|
||||
_contents_array[count] = objects[count];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue