(-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:
Andrew McCallum 1995-05-05 14:46:35 +00:00
parent b50c94ece4
commit 109f709dce

View file

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