mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
c019ce0f9e
commit
2c18a5ea43
6 changed files with 160 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue