mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fix leaks in tests
This commit is contained in:
parent
d6c1d36985
commit
394d858813
1 changed files with 6 additions and 5 deletions
|
@ -5,12 +5,13 @@
|
|||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
id testObj = [NSDate new];
|
||||
id testObj = AUTORELEASE([NSDate new]);
|
||||
|
||||
test_NSObject(@"NSDate",[NSArray arrayWithObject:[NSDate new]]);
|
||||
test_NSCoding([NSArray arrayWithObject:testObj]);
|
||||
test_keyed_NSCoding([NSArray arrayWithObject:testObj]);
|
||||
test_NSCopying(@"NSDate",@"NSDate",[NSArray arrayWithObject:testObj],NO,NO);
|
||||
test_NSObject(@"NSDate", [NSArray arrayWithObject: [NSDate date]]);
|
||||
test_NSCoding([NSArray arrayWithObject: testObj]);
|
||||
test_keyed_NSCoding([NSArray arrayWithObject: testObj]);
|
||||
test_NSCopying(@"NSDate", @"NSDate",
|
||||
[NSArray arrayWithObject: testObj], NO, NO);
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue