mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-05 22:20:59 +00:00
Fix leak
This commit is contained in:
parent
65ae40722e
commit
c224c63c2f
1 changed files with 13 additions and 13 deletions
|
@ -2487,7 +2487,7 @@ fail:
|
||||||
*/
|
*/
|
||||||
[self skipUnit];
|
[self skipUnit];
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
return [NSMutableDictionary dictionary];
|
return [NSMutableDictionary dictionary];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2526,13 +2526,13 @@ fail:
|
||||||
|
|
||||||
DESTROY(unitName);
|
DESTROY(unitName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
return dict;
|
return dict;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
DESTROY(unitName);
|
DESTROY(unitName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2692,13 +2692,13 @@ fail:
|
||||||
|
|
||||||
DESTROY(unitName);
|
DESTROY(unitName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
return dict;
|
return dict;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
DESTROY(unitName);
|
DESTROY(unitName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3052,7 +3052,7 @@ fail:
|
||||||
|
|
||||||
- (NSMutableDictionary*) parseMethodIsDeclaration: (BOOL)flag
|
- (NSMutableDictionary*) parseMethodIsDeclaration: (BOOL)flag
|
||||||
{
|
{
|
||||||
CREATE_AUTORELEASE_POOL(arp);
|
IF_NO_ARC(CREATE_AUTORELEASE_POOL(arp);)
|
||||||
NSMutableDictionary *method;
|
NSMutableDictionary *method;
|
||||||
NSMutableString *mname;
|
NSMutableString *mname;
|
||||||
NSString *token;
|
NSString *token;
|
||||||
|
@ -3340,14 +3340,14 @@ fail:
|
||||||
}
|
}
|
||||||
|
|
||||||
DESTROY(itemName);
|
DESTROY(itemName);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
IF_NO_ARC([method autorelease];)
|
IF_NO_ARC([method autorelease];)
|
||||||
return method;
|
return method;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
DESTROY(itemName);
|
DESTROY(itemName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
RELEASE(method);
|
RELEASE(method);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
@ -4290,7 +4290,7 @@ countAttributes(NSSet *keys, NSDictionary *a)
|
||||||
NSDictionary *methods = nil;
|
NSDictionary *methods = nil;
|
||||||
NSMutableDictionary *dict;
|
NSMutableDictionary *dict;
|
||||||
NSMutableDictionary *d;
|
NSMutableDictionary *d;
|
||||||
CREATE_AUTORELEASE_POOL(arp);
|
IF_NO_ARC(CREATE_AUTORELEASE_POOL(arp);)
|
||||||
|
|
||||||
dict = [[NSMutableDictionary alloc] initWithCapacity: 8];
|
dict = [[NSMutableDictionary alloc] initWithCapacity: 8];
|
||||||
|
|
||||||
|
@ -4381,14 +4381,14 @@ countAttributes(NSSet *keys, NSDictionary *a)
|
||||||
|
|
||||||
DESTROY(unitName);
|
DESTROY(unitName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
IF_NO_ARC([dict autorelease];)
|
IF_NO_ARC([dict autorelease];)
|
||||||
return dict;
|
return dict;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
DESTROY(unitName);
|
DESTROY(unitName);
|
||||||
DESTROY(comment);
|
DESTROY(comment);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
RELEASE(dict);
|
RELEASE(dict);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
@ -4818,7 +4818,7 @@ fail:
|
||||||
unichar *inptr;
|
unichar *inptr;
|
||||||
unichar *outptr;
|
unichar *outptr;
|
||||||
NSMutableArray *a;
|
NSMutableArray *a;
|
||||||
CREATE_AUTORELEASE_POOL(arp);
|
IF_NO_ARC(CREATE_AUTORELEASE_POOL(arp);)
|
||||||
|
|
||||||
contents = [NSString stringWithContentsOfFile: fileName];
|
contents = [NSString stringWithContentsOfFile: fileName];
|
||||||
length = [contents length];
|
length = [contents length];
|
||||||
|
@ -4912,7 +4912,7 @@ fail:
|
||||||
buffer = [data mutableBytes];
|
buffer = [data mutableBytes];
|
||||||
pos = 0;
|
pos = 0;
|
||||||
ASSIGN(lines, [NSArray arrayWithArray: a]);
|
ASSIGN(lines, [NSArray arrayWithArray: a]);
|
||||||
[arp drain];
|
IF_NO_ARC([arp release];)
|
||||||
IF_NO_ARC([data autorelease];)
|
IF_NO_ARC([data autorelease];)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue