fixup to compile again

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35881 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-12-12 13:51:07 +00:00
parent 6965163efb
commit 9923323d24
3 changed files with 17 additions and 12 deletions

View file

@ -334,11 +334,14 @@ static Class concreteClass = Nil;
- (void) dealloc
{
int i;
[self finalize];
// For weak memory, we must zero all of the elements, or the runtime will
// keep pointers to them lying around. For strong memory, we must release
// things or they will leak.
for (int i=0 ; i<_count ; i++)
/* For weak memory, we must zero all of the elements, or the runtime will
* keep pointers to them lying around. For strong memory, we must release
* things or they will leak.
*/
for (i = 0; i < _count; i++)
{
pointerFunctionsAssign(&_pf, &_contents[i], 0);
}