This commit is contained in:
rfm 2024-11-21 14:36:16 +00:00
parent 65ae40722e
commit c224c63c2f

View file

@ -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];)
} }