Memory leak fixes and a little new debug functionality

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17803 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-10-08 15:03:58 +00:00
parent c019ce0f9e
commit 2c18a5ea43
6 changed files with 160 additions and 21 deletions

View file

@ -552,12 +552,19 @@ static SEL rlSel;
[aCoder decodeArrayOfObjCType: @encode(id)
count: count
at: contents];
return [self initWithObjects: contents count: count];
self = [self initWithObjects: contents count: count];
#if GS_WITH_GC == 0
while (count-- > 0)
{
[contents[count] release];
}
#endif
}
else
{
return [self initWithObjects: 0 count: 0];
self = [self initWithObjects: 0 count: 0];
}
return self;
}
/**