mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix mior leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38559 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0bbdb77e1b
commit
bd07f71fbf
1 changed files with 3 additions and 1 deletions
|
@ -461,6 +461,7 @@ extern void GSPropertyListMake(id,NSDictionary*,BOOL,BOOL,unsigned,id*);
|
|||
unsigned int count = [_subs count];
|
||||
NSMutableArray *esubs = [NSMutableArray arrayWithCapacity: count];
|
||||
unsigned int i;
|
||||
NSPredicate *p;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
|
@ -468,7 +469,8 @@ extern void GSPropertyListMake(id,NSDictionary*,BOOL,BOOL,unsigned,id*);
|
|||
predicateWithSubstitutionVariables: variables]];
|
||||
}
|
||||
|
||||
return [[[self class] alloc] initWithType: _type subpredicates: esubs];
|
||||
p = [[[self class] alloc] initWithType: _type subpredicates: esubs];
|
||||
return AUTORELEASE(p);
|
||||
}
|
||||
|
||||
- (Class) classForCoder
|
||||
|
|
Loading…
Reference in a new issue