Fix more leaks

This commit is contained in:
rfm 2024-11-17 13:32:31 +00:00
parent 0fb9739f21
commit 7cff5fc106
4 changed files with 21 additions and 8 deletions

View file

@ -289,7 +289,7 @@ testParseData(NSData *xml, NSString *expect, BOOL strict)
if (Nil == c) c = [NSXMLParser class];
parser = [[c alloc] initWithData: xml];
result = testParser(parser, expect);
RELEASE(parser);
[arp release];
return result;
}
@ -315,7 +315,7 @@ testParseStream(NSInputStream *stream, NSString *expect, BOOL strict)
if (Nil == c) c = [NSXMLParser class];
parser = [[c alloc] initWithStream: stream];
result = testParser(parser, expect);
RELEASE(parser);
[arp release];
return result;
}