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:
Richard Frith-MacDonald 2015-05-26 13:24:26 +00:00
parent 0bbdb77e1b
commit bd07f71fbf

View file

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