mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
fix leaks
This commit is contained in:
parent
ce6f8ff6b7
commit
bf90656ab7
2 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
id testObject = [NSCountedSet new];
|
||||
id testObject = AUTORELEASE([NSCountedSet new]);
|
||||
test_alloc(@"NSCountedSet");
|
||||
test_NSObject(@"NSCountedSet",[NSArray arrayWithObject:testObject]);
|
||||
test_NSCoding([NSArray arrayWithObject:testObject]);
|
||||
|
|
|
@ -110,7 +110,7 @@ int main()
|
|||
[obj count] == 0,
|
||||
"-description gives us a text property-list");
|
||||
|
||||
dict = [[NSDictionary dictionaryWithObjects:vals1 forKeys:keys1] retain];
|
||||
ASSIGN(dict, [NSDictionary dictionaryWithObjects:vals1 forKeys:keys1]);
|
||||
PASS(dict != nil &&
|
||||
[dict isKindOfClass:[NSDictionary class]] &&
|
||||
[dict count] == 2,
|
||||
|
@ -263,6 +263,7 @@ int main()
|
|||
@"val", a, @"val2", @"key2", nil];
|
||||
PASS_EQUAL([d objectForKey: a], @"val", "array as dictionary key works")
|
||||
|
||||
RELEASE(dict);
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue